CloneSet93


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
47210.999class_member_list[3]
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
14776
libraries/joomla/database/table/extension.php
24767
libraries/joomla/database/table/update.php
Clone Instance
1
Line Count
47
Source Line
76
Source File
libraries/joomla/database/table/extension.php

        /**
        * Overloaded check function
        *
        * @access public
        * @return boolean True if the object is ok
        * @see JTable:bind
        */
        function check() {

                // check for valid name
                if (trim( $this->name) ==  ''
                    ||                           trim( $this->element) ==  '') {
                        $this->setError(JText::sprintf( 'must contain a title', JText::_( 'Extension')));
                        return FALSE;
                      }
                return TRUE;
              }

        /**
        * Overloaded bind function
        *
        * @access public
        * @param array $hash named array
        * @return null|string   null is operation was satisfactory, otherwise returns an error
        * @see JTable:bind
        * @since 1.5
        */
        function bind($array, $ignore=  '') {

                if ( isset ($array['params'])
                     &&                           is_array($array['params'])) {
                        $registry=  new JRegistry();
                        $registry->loadArray($array['params']);
                        $array['params']=  $registry->toString();
                      }

                if ( isset ($array['control'])
                     &&                            is_array( $array['control'])) {
                        $registry=  new JRegistry();
                        $registry->loadArray($array['control']);
                        $array['control']=  $registry->toString();
                      }

                return parent::bind($array, $ignore);
              }

        function find($options=array()) {
                $dbo= & JFactory::getDBO();
                $where=  array();
                foreach ($options as $col => $val) {
                        $where[]=  $col
                                   .     ' = '
                                   .            $dbo->Quote($val);
                      }
                $query=  'SELECT extension_id FROM #__extensions WHERE '
                         .                                                implode(' AND ', $where);
                $dbo->setQuery($query);
                return $dbo->loadResult();
              }


Clone Instance
2
Line Count
47
Source Line
67
Source File
libraries/joomla/database/table/update.php

        /**
        * Overloaded check function
        *
        * @access public
        * @return boolean True if the object is ok
        * @see JTable:bind
        */
        function check() {

                // check for valid name
                if (trim( $this->name) ==  ''
                    ||                           trim( $this->element) ==  '') {
                        $this->setError(JText::sprintf( 'must contain a title', JText::_( 'Extension')));
                        return FALSE;
                      }
                return TRUE;
              }

        /**
        * Overloaded bind function
        *
        * @access public
        * @param array $hash named array
        * @return null|string   null is operation was satisfactory, otherwise returns an error
        * @see JTable:bind
        * @since 1.5
        */
        function bind($array, $ignore=  '') {

                if ( isset ($array['params'])
                     &&                           is_array($array['params'])) {
                        $registry=  new JRegistry();
                        $registry->loadArray($array['params']);
                        $array['params']=  $registry->toString();
                      }

                if ( isset ($array['control'])
                     &&                            is_array( $array['control'])) {
                        $registry=  new JRegistry();
                        $registry->loadArray($array['control']);
                        $array['control']=  $registry->toString();
                      }

                return parent::bind($array, $ignore);
              }

        function find($options=array()) {
                $dbo= & JFactory::getDBO();
                $where=  array();
                foreach ($options as $col => $val) {
                        $where[]=  $col
                                   .     ' = '
                                   .            $dbo->Quote($val);
                      }
                $query=  'SELECT update_id FROM #__updates WHERE '
                         .                                          implode(' AND ', $where);
                $dbo->setQuery($query);
                return $dbo->loadResult();
              }


Clone AbstractionParameter Count: 1Parameter Bindings

/**
        * Overloaded check function
        *
        * @access public
        * @return boolean True if the object is ok
        * @see JTable:bind
        */
function check() {
  // check for valid name
  if (trim($this->name) == ''
      || trim($this->element) == '') {
    $this->setError(JText::sprintf('must contain a title',JText::_('Extension')));
    return FALSE;
  }
  return TRUE;
}

/**
        * Overloaded bind function
        *
        * @access public
        * @param array $hash named array
        * @return null|string   null is operation was satisfactory, otherwise returns an error
        * @see JTable:bind
        * @since 1.5
        */
function bind($array,$ignore='') {
  if ( isset ($array['params'])
       && is_array($array['params'])) {
    $registry=new JRegistry();
    $registry->loadArray($array['params']);
    $array['params']=$registry->toString();
  }
  if ( isset ($array['control'])
       && is_array($array['control'])) {
    $registry=new JRegistry();
    $registry->loadArray($array['control']);
    $array['control']=$registry->toString();
  }
  return parent::bind($array,$ignore);
}

function find($options=array()) {
  $dbo= &JFactory::getDBO();
  $where=array();
  foreach ($options as $col => $val) {
    $where[]=$col
             . ' = '
             . $dbo->Quote($val);
  }
  $query= [[#variable24d6ecc0]]
         . implode(' AND ',$where);
  $dbo->setQuery($query);
  return $dbo->loadResult();
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#24d6ecc0]]
'SELECT update_id FROM #__updates WHERE ' 
12[[#24d6ecc0]]
'SELECT extension_id FROM #__extensions WHERE '