Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
34 | 2 | 2 | 0.999 | class_member |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 34 | 127 | administrator/components/com_users/models/groups.php |
2 | 34 | 128 | administrator/components/com_users/models/levels.php |
| ||||
/** * Method to auto-populate the model state. * * This method should only be called once per instantiation and is designed * to be called on the first call to the getState() method unless the model * configuration flag to ignore the request is set. * * @return void */ protected function _populateState() { // Initialize variables. $app= &JFactory::getApplication('administrator'); $user= &JFactory::getUser(); $config= &JFactory::getConfig(); $params= JComponentHelper::getParams('com_users'); $context= 'com_users.groups.'; // Load the filter state. $this->setState('filter.search', $app->getUserStateFromRequest($context . 'filter.search', 'filter_search', '')); $this->setState('filter.state', $app->getUserStateFromRequest($context . 'filter.state', 'filter_state', 0, 'string')); $this->setState('filter.parent_id', $app->getUserStateFromRequest($context . 'filter.parent_id', 'filter_parent_id', 0, 'int')); $this->setState('filter.section_id', $app->getUserStateFromRequest($context . 'filter.section_id', 'filter_section_id', 0, 'int')); // Load the list state. $this->setState('list.start', $app->getUserStateFromRequest($context . 'list.start', 'limitstart', 0, 'int')); $this->setState('list.limit', $app->getUserStateFromRequest($context . 'list.limit', 'limit', $app->getCfg('list_limit', 25), 'int')); $this->setState('list.ordering', 'a.lft'); $this->setState('list.direction', 'ASC'); // Load the user parameters. $this->setState('user', $user); $this->setState('user.id', (int) $user->id); // Load the check parameters. if ($this->_state->get('filter.state') === '*') { $this->setState('check.state', FALSE); } else { $this->setState('check.state', TRUE); } // Load the parameters. $this->setState('params', $params); } |
| ||||
/** * Method to auto-populate the model state. * * This method should only be called once per instantiation and is designed * to be called on the first call to the getState() method unless the model * configuration flag to ignore the request is set. * * @return void */ protected function _populateState() { // Initialize variables. $app= &JFactory::getApplication('administrator'); $user= &JFactory::getUser(); $config= &JFactory::getConfig(); $params= JComponentHelper::getParams('com_users'); $context= 'com_users.levels.'; // Load the filter state. $this->setState('filter.search', $app->getUserStateFromRequest($context . 'filter.search', 'filter_search', '')); $this->setState('filter.state', $app->getUserStateFromRequest($context . 'filter.state', 'filter_state', 0, 'string')); $this->setState('filter.parent_id', $app->getUserStateFromRequest($context . 'filter.parent_id', 'filter_parent_id', 0, 'int')); $this->setState('filter.section_id', $app->getUserStateFromRequest($context . 'filter.section_id', 'filter_section_id', 0, 'int')); // Load the list state. $this->setState('list.start', $app->getUserStateFromRequest($context . 'list.start', 'limitstart', 0, 'int')); $this->setState('list.limit', $app->getUserStateFromRequest($context . 'list.limit', 'limit', $app->getCfg('list_limit', 25), 'int')); $this->setState('list.ordering', 'a.id'); $this->setState('list.direction', 'ASC'); // Load the user parameters. $this->setState('user', $user); $this->setState('user.id', (int) $user->id); // Load the check parameters. if ($this->_state->get('filter.state') === '*') { $this->setState('check.state', FALSE); } else { $this->setState('check.state', TRUE); } // Load the parameters. $this->setState('params', $params); } |
| |||
/** * Method to auto-populate the model state. * * This method should only be called once per instantiation and is designed * to be called on the first call to the getState() method unless the model * configuration flag to ignore the request is set. * * @return void */ protected function _populateState() { // Initialize variables. $app= &JFactory::getApplication('administrator'); $user= &JFactory::getUser(); $config= &JFactory::getConfig(); $params=JComponentHelper::getParams('com_users'); $context= [[#variable58e75940]]; // Load the filter state. $this->setState('filter.search',$app->getUserStateFromRequest($context . 'filter.search','filter_search','')); $this->setState('filter.state',$app->getUserStateFromRequest($context . 'filter.state','filter_state',0,'string')); $this->setState('filter.parent_id',$app->getUserStateFromRequest($context . 'filter.parent_id','filter_parent_id',0,'int')); $this->setState('filter.section_id',$app->getUserStateFromRequest($context . 'filter.section_id','filter_section_id',0,'int')); // Load the list state. $this->setState('list.start',$app->getUserStateFromRequest($context . 'list.start','limitstart',0,'int')); $this->setState('list.limit',$app->getUserStateFromRequest($context . 'list.limit','limit',$app->getCfg('list_limit',25),'int')); $this->setState('list.ordering', [[#variable58e75920]]); $this->setState('list.direction','ASC'); // Load the user parameters. $this->setState('user',$user); $this->setState('user.id',(int) $user->id); // Load the check parameters. if ($this->_state->get('filter.state') === '*') { $this->setState('check.state',FALSE); } else { $this->setState('check.state',TRUE); } // Load the parameters. $this->setState('params',$params); } |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#58e75940]] | 'com_users.levels.' |
1 | 2 | [[#58e75940]] | 'com_users.groups.' |
2 | 1 | [[#58e75920]] | 'a.id' |
2 | 2 | [[#58e75920]] | 'a.lft' |