本文整理匯總了PHP中sapp_Global::generateEmpTabConstants方法的典型用法代碼示例。如果您正苦於以下問題:PHP sapp_Global::generateEmpTabConstants方法的具體用法?PHP sapp_Global::generateEmpTabConstants怎麽用?PHP sapp_Global::generateEmpTabConstants使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::generateEmpTabConstants方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addAction
public function addAction()
{
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
$loginuserGroup = $auth->getStorage()->read()->group_id;
}
$empconfigurationform = new Default_Form_empconfiguration();
$empconfigurationform->setAttrib('action', DOMAIN . 'empconfiguration/add');
if ($loginuserGroup == '') {
$checkTypeArray = array_keys($this->empConfigureArray);
}
if (!empty($checkTypeArray)) {
$empconfigurationform->setDefaults(array('checktype' => $checkTypeArray));
$empconfigurationform->setDefault('checkall', 1);
}
$this->view->form = $empconfigurationform;
$this->view->succesmsg = $this->_helper->flashMessenger->getMessages();
if ($this->_request->getPost()) {
if ($empconfigurationform->isValid($this->_request->getPost())) {
$checktype = $this->_request->getParam('checktype');
$emptab = sapp_Global::generateEmpTabConstants($checktype);
$this->_helper->getHelper("FlashMessenger")->addMessage($emptab);
$this->_redirect('empconfiguration');
} else {
$messages = $empconfigurationform->getMessages();
foreach ($messages as $key => $val) {
foreach ($val as $key2 => $val2) {
$msgarray[$key] = $val2;
break;
}
}
$this->view->msgarray = $msgarray;
}
}
}