CloneSet310


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
26230.980class_member_list[2]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
126133
libraries/joomla/database/database/mysql.php
226150
libraries/joomla/database/database/mysqli.php
Clone Instance
1
Line Count
26
Source Line
133
Source File
libraries/joomla/database/database/mysql.php

        /**
         * Select a database for use
         *
         * @access      public
         * @param       string $database
         * @return      boolean True if the database has been successfully selected
         * @since       1.5
         */
        public

               function select($database) {

                if (! $database)
                {
                        return FALSE;
                      }

                if (!mysql_select_db($database, $this->_resource)) {
                        $this->_errorNum = 3;
                        $this->_errorMsg = 'Could not connect to database';
                        return FALSE;
                      }

                return TRUE;
              }
        /**
         * Determines UTF support
         *
         * @access      public
         * @return boolean True - UTF is supported
         */
        public

               function hasUTF() {

                $verParts=  explode('.', $this->getVersion());
                return ($verParts[0] == 5
                        ||                   ($verParts[0] == 4
                                              &&                   $verParts[1] == 1
                                              &&                                        (int) $verParts[2]>= 2));
              }


Clone Instance
2
Line Count
26
Source Line
150
Source File
libraries/joomla/database/database/mysqli.php

        /**
         * Select a database for use
         *
         * @access      public
         * @param       string $database
         * @return      boolean True if the database has been successfully selected
         * @since       1.5
         */
        public

               function select($database) {

                if (! $database)
                {
                        return FALSE;
                      }

                if (!mysqli_select_db($this->_resource ,$database)) {
                        $this->_errorNum = 3;
                        $this->_errorMsg = 'Could not connect to database';
                        return FALSE;
                      }

                return TRUE;
              }
        /**
         * Determines UTF support
         *
         * @access public
         * @return boolean True - UTF is supported
         */
        public

               function hasUTF() {

                $verParts=  explode('.', $this->getVersion());
                return ($verParts[0] == 5
                        ||                   ($verParts[0] == 4
                                              &&                   $verParts[1] == 1
                                              &&                                        (int) $verParts[2]>= 2));
              }


Clone AbstractionParameter Count: 3Parameter Bindings

/**
         * Select a database for use
         *
         * @access      public
         * @param       string $database
         * @return      boolean True if the database has been successfully selected
         * @since       1.5
         */
public

      function select($database) {
        if (!$database) {
          return FALSE;
        }
        if (! [[#variable3c64ad40]]( [[#variable3eafdd00]], [[#variable3c64ac00]])) {
          $this->_errorNum =3;
          $this->_errorMsg ='Could not connect to database';
          return FALSE;
        }
        return TRUE;
      }
/**
         * Determines UTF support
         *
         * @access      public
         * @return boolean True - UTF is supported
         */
/**
         * Determines UTF support
         *
         * @access public
         * @return boolean True - UTF is supported
         */
public

      function hasUTF() {
        $verParts=explode('.',$this->getVersion());
        return ($verParts[0] == 5
                || ($verParts[0] == 4
                    && $verParts[1] == 1
                    && (int) $verParts[2]>=2));
      }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c64ad40]]
mysql_select_db 
12[[#3c64ad40]]
mysqli_select_db 
21[[#3eafdd00]]
$database 
22[[#3eafdd00]]
$this->_resource 
31[[#3c64ac00]]
$this->_resource 
32[[#3c64ac00]]
$database