Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
23 | 2 | 5 | 0.980 | class_member_list[2] |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 23 | 27 | administrator/components/com_users/models/group.php |
2 | 23 | 28 | administrator/components/com_users/models/level.php |
| ||||
/** * Array of items for memory caching. * * @var array */ protected $_items= array(); /** * Method to auto-populate the model state. * * @return void */ protected function _populateState() { $app= &JFactory::getApplication('administrator'); $params= &JComponentHelper::getParams('com_users'); // Load the group state. if (!$groupId= (int) $app->getUserState('com_users.edit.group.id')) { $groupId= (int) JRequest::getInt('group_id'); } $this->setState('group.id', $groupId); // Add the group id to the context to preserve sanity. $context= 'com_users.group.' . $groupId . '.'; // Load the parameters. $this->setState('params', $params); } |
| ||||
/** * Array of items for memory caching. * * @var array */ protected $_items= array(); /** * Method to auto-populate the model state. * * @return void */ protected function _populateState() { $app= &JFactory::getApplication('administrator'); $params= &JComponentHelper::getParams('com_users'); // Load the level state. if (!$levelId= (int) $app->getUserState('com_users.edit.level.id')) { $levelId= (int) JRequest::getInt('level_id'); } $this->setState('level.id', $levelId); // Add the level id to the context to preserve sanity. $context= 'com_users.level.' . $levelId . '.'; // Load the parameters. $this->setState('params', $params); } |
| |||
/** * Array of items for memory caching. * * @var array */ protected $_items=array(); /** * Method to auto-populate the model state. * * @return void */ protected function _populateState() { $app= &JFactory::getApplication('administrator'); $params= &JComponentHelper::getParams('com_users'); // Load the level state. // Load the group state. if (! [[#variable484f8ac0]]= (int) $app->getUserState( [[#variable484f8a80]])) { [[#variable484f8ac0]]= (int) JRequest::getInt( [[#variable484f8940]]); } $this->setState( [[#variable2246cf60]], [[#variable484f8ac0]]); // Add the level id to the context to preserve sanity. // Add the group id to the context to preserve sanity. $context= [[#variable484f8860]] . [[#variable484f8ac0]] . '.'; // Load the parameters. $this->setState('params',$params); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#484f8ac0]] | $levelId |
1 | 2 | [[#484f8ac0]] | $groupId |
2 | 1 | [[#484f8a80]] | 'com_users.edit.level.id' |
2 | 2 | [[#484f8a80]] | 'com_users.edit.group.id' |
3 | 1 | [[#484f8940]] | 'level_id' |
3 | 2 | [[#484f8940]] | 'group_id' |
4 | 1 | [[#2246cf60]] | 'level.id' |
4 | 2 | [[#2246cf60]] | 'group.id' |
5 | 1 | [[#484f8860]] | 'com_users.level.' |
5 | 2 | [[#484f8860]] | 'com_users.group.' |