本文整理汇总了PHP中EnmasseHelper::getDeliveryPersons方法的典型用法代码示例。如果您正苦于以下问题:PHP EnmasseHelper::getDeliveryPersons方法的具体用法?PHP EnmasseHelper::getDeliveryPersons怎么用?PHP EnmasseHelper::getDeliveryPersons使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EnmasseHelper
的用法示例。
在下文中一共展示了EnmasseHelper::getDeliveryPersons方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: display
public function display($tpl = null)
{
$task = JRequest::getWord('task');
TOOLBAR_enmasse::_SMENU();
TOOLBAR_enmasse::_PARTIAL_ORDER();
$filter = JRequest::getVar('filter', array());
// Weird that only this will caused warning...
if (!isset($filter['deal_name'])) {
$filter['deal_name'] = "";
}
if (!isset($filter['deal_code'])) {
$filter['deal_code'] = "";
}
if (!isset($filter['status'])) {
$filter['status'] = "";
}
if (!isset($filter['year'])) {
$filter['year'] = "";
}
if (!isset($filter['month'])) {
$filter['month'] = "";
}
//filter partial order
$filter['partial'] = true;
JRequest::setVar('filter', $filter);
$oOrderModel = JModel::getInstance('order', 'enmasseModel');
$orderList = $oOrderModel->search($filter['status'], $filter['deal_code'], $filter['deal_name'], "created_at", "DESC", true);
$pagination = $oOrderModel->getPagination();
$this->statusList = EnmasseHelper::$ORDER_STATUS_LIST;
$this->filter = $filter;
$this->orderList = $orderList;
$this->pagination = $pagination;
$this->deliveryPersons = EnmasseHelper::getDeliveryPersons();
parent::display($tpl);
}