Exemple #1
0
 /**
  * Retrieves the data for a paginated list
  * @return array Array of objects containing the data from the database (cached)
  */
 public function getList($refresh = false)
 {
     if (empty($this->_list) || $refresh) {
         $this->_list = parent::getList($refresh);
         $overridden_methods = $this->getOverriddenMethods(get_class($this));
         if (!in_array('getList', $overridden_methods)) {
             $dispatcher = JDispatcher::getInstance();
             $dispatcher->trigger('onPrepare' . $this->getTable()->get('_suffix') . 'List', array(&$this->_list));
         }
     }
     return $this->_list;
 }
Exemple #2
0
 /**
  * Retrieves the data for a paginated list
  * @return array Array of objects containing the data from the database (cached)
  */
 public function getList($refresh = false)
 {
     JPluginHelper::importPlugin('citruscart');
     $app = JFactory::getApplication();
     if (empty($this->_list) || $refresh) {
         $this->_list = parent::getList($refresh);
         $overridden_methods = $this->getOverriddenMethods(get_class($this));
         if (!in_array('getList', $overridden_methods)) {
             $app->triggerEvent('onPrepare' . $this->getTable()->get('_suffix') . 'List', array(&$this->_list));
         }
     }
     return $this->_list;
 }