本文整理汇总了PHP中Application_Model_GlobalClass::getActive方法的典型用法代码示例。如果您正苦于以下问题:PHP Application_Model_GlobalClass::getActive方法的具体用法?PHP Application_Model_GlobalClass::getActive怎么用?PHP Application_Model_GlobalClass::getActive使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Application_Model_GlobalClass
的用法示例。
在下文中一共展示了Application_Model_GlobalClass::getActive方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: brandAction
public function brandAction()
{
$formFilter = new Product_Form_FrmProductFilter();
$this->view->formFilter = $formFilter;
$list = new Application_Form_Frmlist();
$db = new Application_Model_DbTable_DbGlobal();
$request = $this->getRequest();
$id = $request->getParam("id", NULL);
$productSql = "SELECT branch_id ,Name,IsActive\n\t\tFROM tb_branch WHERE Name!='' ";
if ($this->getRequest()->isPost()) {
$post = $this->getRequest()->getPost();
$productName = $this->getRequest()->getParam('id', Null);
if ($post['g_name'] != '') {
$productSql .= " AND Name LIKE '%" . trim($post['g_name']) . "%'";
}
if ($post['branch_id'] != '' and $post['branch_id'] != 0) {
$productSql .= " AND branch_id = " . trim($post['branch_id']);
}
}
$productSql .= " ORDER BY Name";
$rows = $db->getGlobalDb($productSql);
$glClass = new Application_Model_GlobalClass();
$rows = $glClass->getActive($rows, BASE_URL, true);
$columns = array("BRAND_CAP", "STATUS_CAP");
$link = array('module' => 'product', 'controller' => 'index', 'action' => 'add-brand');
$urlEdit = BASE_URL . "/product/index/add-brand";
$this->view->list = $list->getCheckList(1, $columns, $rows, array('item_name' => $link, 'Name' => $link), $urlEdit);
Application_Model_Decorator::removeAllDecorator($formFilter);
}