本文整理汇总了PHP中Application_Model_GlobalClass::getpublic方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_GlobalClass::getpublic方法的具体用法?PHP Application_Model_GlobalClass::getpublic怎么用?PHP Application_Model_GlobalClass::getpublic使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_GlobalClass
的用法示例。
在下文中一共展示了Application_Model_GlobalClass::getpublic方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: typePriceAction
public function typePriceAction()
{
$formFilter = new Product_Form_FrmItemPrice();
$frmsearch = $formFilter->searchPriceType(null);
Application_Model_Decorator::removeAllDecorator($frmsearch);
$this->view->formFilter = $frmsearch;
$list = new Application_Form_Frmlist();
$db = new Application_Model_DbTable_DbGlobal();
$request = $this->getRequest();
$id = $request->getParam("id", NULL);
$sql = "SELECT type_id,price_type_name,pt.desc,public\n\t\tFROM tb_price_type AS pt\n\t\tWHERE price_type_name !='' ";
if ($this->getRequest()->isPost()) {
$post = $this->getRequest()->getPost();
if ($post['price_type'] != '') {
$sql .= " AND price_type_name LIKE '%" . trim($post['price_type']) . "%'";
}
if ($post['status'] != '') {
$sql .= " AND public =" . trim($post['status']);
}
}
// //echo $sql;exit();
// $sql .= " GROUP BY p.pro_id,pt.type_id";
//echo $sql;
$rows = $db->getGlobalDb($sql);
$glClass = new Application_Model_GlobalClass();
$rows = $glClass->getpublic($rows, BASE_URL, true);
$columns = array("TYPE_PRICE", "DESC_CAP", "ACTIVE", "DEACTIVE");
$link = array('module' => 'product', 'controller' => 'adjust-stock', 'action' => 'add-type-price');
$urlEdit = BASE_URL . "/product/adjust-stock/add-type-price";
$this->view->list = $list->getCheckList(1, $columns, $rows, array('item_name' => $link, 'Name' => $link), $urlEdit);
Application_Model_Decorator::removeAllDecorator($formFilter);
}