CloneSet32


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
27650.960function_declaration
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
127121
administrator/components/com_categories/models/category.php
227117
administrator/components/com_content/models/article.php
327135
administrator/components/com_menus/models/item.php
427122
administrator/components/com_users/models/group.php
52787
administrator/components/com_users/models/level.php
627177
administrator/components/com_weblinks/models/weblink.php
Clone Instance
1
Line Count
27
Source Line
121
Source File
administrator/components/com_categories/models/category.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               '/models/forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               '/models/fields');
                $form=  &JForm::getInstance('jform', 'category', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_categories.edit.category.data', array());

                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }

                return $form;
              }


Clone Instance
2
Line Count
27
Source Line
117
Source File
administrator/components/com_content/models/article.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               '/models/forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               '/models/fields');
                $form=  &JForm::getInstance('jform', 'article', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_content.edit.item.data', array());

                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }

                return $form;
              }


Clone Instance
3
Line Count
27
Source Line
135
Source File
administrator/components/com_menus/models/item.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               '/models/forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               '/models/fields');
                $form=  &JForm::getInstance('jform', 'item', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_menus.edit.item.data', array());

                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }

                return $form;
              }


Clone Instance
4
Line Count
27
Source Line
122
Source File
administrator/components/com_users/models/group.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               '/models/forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               '/models/fields');
                $form=  &JForm::getInstance('jform', 'group', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_users.edit.group.data', array());

                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }

                return $form;
              }


Clone Instance
5
Line Count
27
Source Line
87
Source File
administrator/components/com_users/models/level.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               '/models/forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               '/models/fields');
                $form=  &JForm::getInstance('jform', 'level', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_users.edit.level.data', array());

                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }

                return $form;
              }


Clone Instance
6
Line Count
27
Source Line
177
Source File
administrator/components/com_weblinks/models/weblink.php

               function &getForm() {

                // Initialize variables.
                $app=     &JFactory::getApplication();
                $false=   FALSE;

                // Get the form.
                jimport('joomla.form.form');
                JForm::addFormPath(JPATH_COMPONENT
                                   .               DS
                                   .                  'models'
                                   .                           DS
                                   .                              'forms');
                JForm::addFieldPath(JPATH_COMPONENT
                                    .               DS
                                    .                  'models'
                                    .                           DS
                                    .                              'fields');
                $form=  &JForm::getInstance('jform', 'weblink', TRUE, array('array' => TRUE));
                // Check for an error.
                if (JError::isError($form)) {
                        $this->setError($form->getMessage());
                        return $false;
                      }
                // Check the session for previously entered form data.
                $data=  $app->getUserState('com_weblinks.edit.weblink.data', array());
                // Bind the form data if present.
                if (!empty($data)) {
                        $form->bind($data);
                      }
                return $form;
              }


Clone AbstractionParameter Count: 5Parameter Bindings

function &getForm() {
  // Initialize variables.
  $app= &JFactory::getApplication();
  $false=FALSE;
  // Get the form.
  jimport('joomla.form.form');
  JForm::addFormPath( [[#variable22670460]]
                     .  [[#variable226703e0]]);
  JForm::addFieldPath( [[#variable22670460]]
                      .  [[#variable22670320]]);
  $form= &JForm::getInstance('jform', [[#variable22670280]],TRUE,array('array' => TRUE));
  // Check for an error.
  if (JError::isError($form)) {
    $this->setError($form->getMessage());
    return $false;
  }
  // Check the session for previously entered form data.
  $data=$app->getUserState( [[#variable226702e0]],array());
  // Bind the form data if present.
  if (!empty($data)) {
    $form->bind($data);
  }
  return $form;
}
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#22670460]]
JPATH_COMPONENT 
12[[#22670460]]
JPATH_COMPONENT 
13[[#22670460]]
JPATH_COMPONENT 
14[[#22670460]]
JPATH_COMPONENT 
15[[#22670460]]
JPATH_COMPONENT 
16[[#22670460]]
JPATH_COMPONENT
. DS
. 'models'
. DS 
21[[#226703e0]]
'/models/forms' 
22[[#226703e0]]
'/models/forms' 
23[[#226703e0]]
'/models/forms' 
24[[#226703e0]]
'/models/forms' 
25[[#226703e0]]
'/models/forms' 
26[[#226703e0]]
'forms' 
31[[#22670320]]
'/models/fields' 
32[[#22670320]]
'/models/fields' 
33[[#22670320]]
'/models/fields' 
34[[#22670320]]
'/models/fields' 
35[[#22670320]]
'/models/fields' 
36[[#22670320]]
'fields' 
41[[#22670280]]
'category' 
42[[#22670280]]
'article' 
43[[#22670280]]
'item' 
44[[#22670280]]
'group' 
45[[#22670280]]
'level' 
46[[#22670280]]
'weblink' 
51[[#226702e0]]
'com_categories.edit.category.data' 
52[[#226702e0]]
'com_content.edit.item.data' 
53[[#226702e0]]
'com_menus.edit.item.data' 
54[[#226702e0]]
'com_users.edit.group.data' 
55[[#226702e0]]
'com_users.edit.level.data' 
56[[#226702e0]]
'com_weblinks.edit.weblink.data'