Example #1
0
 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;
 }
Example #2
0
 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;
 }
Example #3
0
 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;
 }
Example #4
0
 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_j2store&view=shipping&task=view&id=' . JFactory::getApplication()->input->getInt('id') . '&shippingTask=view&sid=' . $item->shipping_method_id;
     }
     return $list;
 }
Example #5
0
 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_j2store&view=orderitems&task=edit&id=' . $item->orderitem_id;
     }
     return $list;
 }
Example #6
0
 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_j2store&view=optionvalues&task=delete&cid[]=' . $item->optionvalue_id;
     }
     return $list;
 }