本文整理汇总了PHP中Default_Model_Employee::emprolesgrouppopup方法的典型用法代码示例。如果您正苦于以下问题:PHP Default_Model_Employee::emprolesgrouppopup方法的具体用法?PHP Default_Model_Employee::emprolesgrouppopup怎么用?PHP Default_Model_Employee::emprolesgrouppopup使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Default_Model_Employee
的用法示例。
在下文中一共展示了Default_Model_Employee::emprolesgrouppopup方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: emprolesgrouppopupAction
/**
* This function is used in employee,group and roles for employees popup
*/
public function emprolesgrouppopupAction()
{
$group_id = $this->_getParam('group_id', null);
$role_id = $this->_getParam('role_id', null);
$page_no = $this->_getParam('page_no', 1);
$sort_name = $this->_getParam('sort_name', 'userfullname');
$sort_type = $this->_getParam('sort_type', 'asc');
$per_page = $this->_getParam('per_page', 'asc');
Zend_Layout::getMvcInstance()->setLayoutPath(APPLICATION_PATH . "/layouts/scripts/popup/");
$emp_model = new Default_Model_Employee();
$emp_data = $emp_model->emprolesgrouppopup($group_id, $role_id, $page_no, $sort_name, $sort_type, $per_page);
$page_cnt = $emp_data['page_cnt'];
$employee_data = $emp_data['rows'];
$this->view->per_page = $per_page;
$this->view->page_no = $page_no;
$this->view->sort_name = $sort_name;
$this->view->sort_type = $sort_type;
$this->view->page_cnt = $page_cnt;
$this->view->employee_data = $employee_data;
if ($group_id != USERS_GROUP) {
$this->view->column_arr = $this->empreport_heplper1('mandatory');
} else {
$this->view->column_arr = array('userfullname' => 'User', 'employeeId' => 'User ID', 'emailaddress' => 'Email', 'rolename_p' => 'Role');
}
$this->view->group_id = $group_id;
$this->view->role_id = $role_id;
}