/** * Method to fetch extra data * * @access public * @param null * @return array */ public function getData() { $this->_data = parent::getData(); if (!empty($this->_data)) { foreach ($this->_data as $index => $category) { if (empty($category->active)) { $category->active = $this->getActive($category->id); $this->_data[$index] = $category; } } } return $this->_data; }
/** * Method to load data * * @access public * @param null * @return boolean */ public function getData() { // Lets load the content if it doesn't already exist $this->_data = parent::getData(); // If these data exist, add extra info if (empty($this->_data)) { // Fetch the extra link data if (!isset($this->_data->link_data)) { $this->_data->link_data = array(); if (!empty($this->_data->link_type)) { $plugin = SimplelistsPluginHelper::getPlugin('simplelistslink', $this->_data->link_type); if (!empty($plugin)) { $this->_data->link_data[$this->_data->link_type] = $plugin->getName($this->_data->link); } } } } return $this->_data; }