Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
19 | 3 | 2 | 0.994 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 19 | 999 | libraries/joomla/form/form.php |
2 | 19 | 1029 | libraries/joomla/form/form.php |
3 | 19 | 131 | libraries/joomla/form/formvalidator.php |
| ||||
/** * Method to add a path to the list of form include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ public function addFormPath($new= NULL) { static $paths; if (! isset ($paths)) { $paths= array(dirname( __FILE__) . DS . 'forms'); } // Force path to an array. settype($new, 'array'); // Add the new paths to the list if not already there. foreach ($new as $path) { if (!in_array($path, $paths)) { array_unshift($paths, trim($path)); } } return $paths; } |
| ||||
/** * Method to add a path to the list of field include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ public function addFieldPath($new= NULL) { static $paths; if (! isset ($paths)) { $paths= array(dirname( __FILE__) . DS . 'fields'); } // Force path to an array. settype($new, 'array'); // Add the new paths to the list if not already there. foreach ($new as $path) { if (!in_array($path, $paths)) { array_unshift($paths, trim($path)); } } return $paths; } |
| ||||
/** * Method to add a path to the list of rule include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ public function addRulePath($new= NULL) { static $paths; if (! isset ($paths)) { $paths= array(dirname( __FILE__) . DS . 'rules'); } // Force path to an array. settype($new, 'array'); // Add the new paths to the list if not already there. foreach ($new as $path) { if (!in_array($path, $paths)) { array_unshift($paths, trim($path)); } } return $paths; } |
| |||
/** * Method to add a path to the list of rule include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ /** * Method to add a path to the list of form include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ /** * Method to add a path to the list of field include paths. * * @access public * @param mixed $new A path or array of paths to add. * @return array The list of paths that have been added. * @since 1.6 * @static */ public function [[#variable3c3acd40]]($new=NULL) { static $paths; if (! isset ($paths)) { $paths=array(dirname( __FILE__) . DS . [[#variable462fe280]]); } // Force path to an array. settype($new,'array'); // Add the new paths to the list if not already there. foreach ($new as $path) { if (!in_array($path,$paths)) { array_unshift($paths,trim($path)); } } return $paths; } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#3c3acd40]] | addRulePath |
1 | 2 | [[#3c3acd40]] | addFormPath |
1 | 3 | [[#3c3acd40]] | addFieldPath |
2 | 1 | [[#462fe280]] | 'rules' |
2 | 2 | [[#462fe280]] | 'forms' |
2 | 3 | [[#462fe280]] | 'fields' |