CloneSet52


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
34220.999class_member
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
134127
administrator/components/com_users/models/groups.php
234128
administrator/components/com_users/models/levels.php
Clone Instance
1
Line Count
34
Source Line
127
Source File
administrator/components/com_users/models/groups.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);
              }


Clone Instance
2
Line Count
34
Source Line
128
Source File
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.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);
              }


Clone AbstractionParameter Count: 2Parameter Bindings

/**
         * 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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#58e75940]]
'com_users.levels.' 
12[[#58e75940]]
'com_users.groups.' 
21[[#58e75920]]
'a.id' 
22[[#58e75920]]
'a.lft'