CloneSet264


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19320.994class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
119999
libraries/joomla/form/form.php
2191029
libraries/joomla/form/form.php
319131
libraries/joomla/form/formvalidator.php
Clone Instance
1
Line Count
19
Source Line
999
Source File
libraries/joomla/form/form.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;
              }


Clone Instance
2
Line Count
19
Source Line
1029
Source File
libraries/joomla/form/form.php

        /**
         * 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;
              }


Clone Instance
3
Line Count
19
Source Line
131
Source File
libraries/joomla/form/formvalidator.php

        /**
         * 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;
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#3c3acd40]]
addRulePath 
12[[#3c3acd40]]
addFormPath 
13[[#3c3acd40]]
addFieldPath 
21[[#462fe280]]
'rules' 
22[[#462fe280]]
'forms' 
23[[#462fe280]]
'fields'