Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
16 | 2 | 0 | 1.000 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 16 | 27 | components/com_users/models/profile.php |
2 | 16 | 27 | components/com_users/models/user.php |
| ||||
/** */ function _populateState($property= NULL, $default= NULL) { // Get the application object. $app= &JFactory::getApplication(); $user= &JFactory::getUser(); $params= &$app->getParams('com_users'); // Get the member id. $memberId= JRequest::getInt('member_id', $app->getUserState('com_users.edit.profile.id')); $memberId= !empty($memberId) ? $memberId : (int) $user->get('id'); // Set the member id. $this->setState('member.id', $memberId); // Load the parameters. $this->setState('params', $params); } |
| ||||
/** */ function _populateState($property= NULL, $default= NULL) { // Get the application object. $app= &JFactory::getApplication(); $user= &JFactory::getUser(); $params= &$app->getParams('com_users'); // Get the member id. $memberId= JRequest::getInt('member_id', $app->getUserState('com_users.edit.profile.id')); $memberId= !empty($memberId) ? $memberId : (int) $user->get('id'); // Set the member id. $this->setState('member.id', $memberId); // Load the parameters. $this->setState('params', $params); } |
| |||
/** */ function _populateState($property=NULL,$default=NULL) { // Get the application object. $app= &JFactory::getApplication(); $user= &JFactory::getUser(); $params= &$app->getParams('com_users'); // Get the member id. $memberId=JRequest::getInt('member_id',$app->getUserState('com_users.edit.profile.id')); $memberId=!empty($memberId) ? $memberId : (int) $user->get('id'); // Set the member id. $this->setState('member.id',$memberId); // Load the parameters. $this->setState('params',$params); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
None |