示例#1
0
文件: shipping.php 项目: A-Bush/pprod
 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;
 }
示例#2
0
文件: ordertax.php 项目: A-Bush/pprod
 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;
 }
示例#3
0
文件: orders.php 项目: A-Bush/pprod
 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;
 }
示例#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_k2store&view=shipping&task=view&id=' . JFactory::getApplication()->input->getInt('id') . '&shippingTask=view&sid=' . $item->shipping_method_id;
     }
     return $list;
 }
示例#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_remove = 'index.php?option=com_k2store&view=optionvalues&task=delete&cid[]=' . $item->optionvalue_id;
     }
     return $list;
 }
示例#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 = 'index.php?option=com_k2store&view=orderitems&task=edit&id=' . $item->orderitem_id;
     }
     return $list;
 }