Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
27 | 6 | 5 | 0.960 | function_declaration |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 27 | 121 | administrator/components/com_categories/models/category.php |
2 | 27 | 117 | administrator/components/com_content/models/article.php |
3 | 27 | 135 | administrator/components/com_menus/models/item.php |
4 | 27 | 122 | administrator/components/com_users/models/group.php |
5 | 27 | 87 | administrator/components/com_users/models/level.php |
6 | 27 | 177 | 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 . '/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; } |
| ||||
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; } |
| ||||
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; } |
| ||||
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; } |
| ||||
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; } |
| ||||
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; } |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#22670460]] | JPATH_COMPONENT |
1 | 2 | [[#22670460]] | JPATH_COMPONENT |
1 | 3 | [[#22670460]] | JPATH_COMPONENT |
1 | 4 | [[#22670460]] | JPATH_COMPONENT |
1 | 5 | [[#22670460]] | JPATH_COMPONENT |
1 | 6 | [[#22670460]] | JPATH_COMPONENT . DS . 'models' . DS |
2 | 1 | [[#226703e0]] | '/models/forms' |
2 | 2 | [[#226703e0]] | '/models/forms' |
2 | 3 | [[#226703e0]] | '/models/forms' |
2 | 4 | [[#226703e0]] | '/models/forms' |
2 | 5 | [[#226703e0]] | '/models/forms' |
2 | 6 | [[#226703e0]] | 'forms' |
3 | 1 | [[#22670320]] | '/models/fields' |
3 | 2 | [[#22670320]] | '/models/fields' |
3 | 3 | [[#22670320]] | '/models/fields' |
3 | 4 | [[#22670320]] | '/models/fields' |
3 | 5 | [[#22670320]] | '/models/fields' |
3 | 6 | [[#22670320]] | 'fields' |
4 | 1 | [[#22670280]] | 'category' |
4 | 2 | [[#22670280]] | 'article' |
4 | 3 | [[#22670280]] | 'item' |
4 | 4 | [[#22670280]] | 'group' |
4 | 5 | [[#22670280]] | 'level' |
4 | 6 | [[#22670280]] | 'weblink' |
5 | 1 | [[#226702e0]] | 'com_categories.edit.category.data' |
5 | 2 | [[#226702e0]] | 'com_content.edit.item.data' |
5 | 3 | [[#226702e0]] | 'com_menus.edit.item.data' |
5 | 4 | [[#226702e0]] | 'com_users.edit.group.data' |
5 | 5 | [[#226702e0]] | 'com_users.edit.level.data' |
5 | 6 | [[#226702e0]] | 'com_weblinks.edit.weblink.data' |