CloneSet655


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
13250.969abstract_class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
113103
libraries/joomla/factory.php
213227
libraries/joomla/factory.php
Clone Instance
1
Line Count
13
Source Line
103
Source File
libraries/joomla/factory.php

        /**
         * Get a language object
         *
         * Returns a reference to the global {@link JLanguage} object, only creating it
         * if it doesn't already exist.
         *
         * @return object JLanguage
         */
        public static

                      function &getLanguage() {

                if (!is_object(JFactory::$language))
                {
                        //get the debug configuration setting
                        $conf=  &JFactory::getConfig();
                        $debug=  $conf->getValue('config.debug_lang');

                        JFactory::$language=  JFactory::_createLanguage();
                        JFactory::$language->setDebug($debug);
                      }

                return JFactory::$language;
              }


Clone Instance
2
Line Count
13
Source Line
227
Source File
libraries/joomla/factory.php

        /**
         * Get a database object
         *
         * Returns a reference to the global {@link JDatabase} object, only creating it
         * if it doesn't already exist.
         *
         * @return object JDatabase
         */
        public static

                      function &getDbo() {

                if (!is_object(JFactory::$database))
                {
                        //get the debug configuration setting
                        $conf=  &JFactory::getConfig();
                        $debug=  $conf->getValue('config.debug');

                        JFactory::$database=  JFactory::_createDBO();
                        JFactory::$database->debug($debug);
                      }

                return JFactory::$database;
              }


Clone AbstractionParameter Count: 5Parameter Bindings

/**
         * Get a language object
         *
         * Returns a reference to the global {@link JLanguage} object, only creating it
         * if it doesn't already exist.
         *
         * @return object JLanguage
         */
/**
         * Get a database object
         *
         * Returns a reference to the global {@link JDatabase} object, only creating it
         * if it doesn't already exist.
         *
         * @return object JDatabase
         */
public static

             function & [[#variable4cb4ee40]]() {
               if (!is_object(JFactory:: [[#variable4cb4eda0]])) {
                 //get the debug configuration setting
                 $conf= &JFactory::getConfig();
                 $debug=$conf->getValue( [[#variable4cb4ed40]]);
                 JFactory:: [[#variable4cb4eda0]]=JFactory:: [[#variable4cb4ece0]]();
                 JFactory:: [[#variable4cb4eda0]]-> [[#variable4cb4ec60]]($debug);
               }
               return JFactory:: [[#variable4cb4eda0]];
             }
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#4cb4ee40]]
getLanguage 
12[[#4cb4ee40]]
getDbo 
21[[#4cb4eda0]]
$language 
22[[#4cb4eda0]]
$database 
31[[#4cb4ed40]]
'config.debug_lang' 
32[[#4cb4ed40]]
'config.debug' 
41[[#4cb4ece0]]
_createLanguage 
42[[#4cb4ece0]]
_createDBO 
51[[#4cb4ec60]]
setDebug 
52[[#4cb4ec60]]
debug