public function getItem($pk = null, $refresh = false, $emptyState = true) { if ($item = parent::getItem($pk, $refresh, $emptyState)) { $formdata = new JRegistry(); $formdata->loadString($item->params); $item->data = $formdata->toArray('data'); } return $item; }
public function getList($refresh = false) { $list = parent::getList($refresh = false); // If no item in the list, return an array() if (empty($list)) { return array(); } return $list; }
public function getList($refresh = false) { if (empty($this->_list)) { $list = parent::getList($refresh = false); if (empty($list)) { return array(); } $this->_list = $list; } return $this->_list; }
public function getList($refresh = false) { $list = parent::getList($refresh); // If no item in the list, return an array() if (empty($list)) { return array(); } foreach ($list as $item) { $item->link = 'index.php?option=com_k2store&view=shipping&task=view&id=' . JFactory::getApplication()->input->getInt('id') . '&shippingTask=view&sid=' . $item->shipping_method_id; } return $list; }
public function getList($refresh = false) { $list = parent::getList($refresh = false); // If no item in the list, return an array() if (empty($list)) { return array(); } foreach ($list as $item) { $item->link_remove = 'index.php?option=com_k2store&view=optionvalues&task=delete&cid[]=' . $item->optionvalue_id; } return $list; }
public function getList($refresh = false) { $list = parent::getList($refresh = false); // If no item in the list, return an array() if (empty($list)) { return array(); } foreach ($list as $item) { $item->link = 'index.php?option=com_k2store&view=orderitems&task=edit&id=' . $item->orderitem_id; } return $list; }