本文整理匯總了PHP中sapp_Global::aasort方法的典型用法代碼示例。如果您正苦於以下問題:PHP sapp_Global::aasort方法的具體用法?PHP sapp_Global::aasort怎麽用?PHP sapp_Global::aasort使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類sapp_Global
的用法示例。
在下文中一共展示了sapp_Global::aasort方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: addAction
public function addAction()
{
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
$loginUserId = $auth->getStorage()->read()->id;
}
$msgarray = array();
$errorflag = 'true';
$callval = $this->getRequest()->getParam('call');
if ($callval == 'ajaxcall') {
$this->_helper->layout->disableLayout();
}
$checktypeModal = new Default_Model_Bgscreeningtype();
$agencymodel = new Default_Model_Agencylist();
$emp_check = 'yes';
$typesData = $checktypeModal->fetchAll('isactive=1', 'type')->toArray();
$agencyData = $agencymodel->fetchAll('isactive=1', 'agencyname')->toArray();
$empscreeningModel = new Default_Model_Empscreening();
$empscreeningform = new Default_Form_empscreening();
$empscreeningform->setAttrib('action', BASE_URL . 'empscreening/add');
/* Add multi-options to the employee dropdown */
$employeeData = $empscreeningModel->getEmployeesForScreening();
$candidateData = $empscreeningModel->getCandidatesForScreening();
$specimenArr = array();
$empArr = array();
$candArr = array();
foreach ($employeeData as $eData) {
$empArr[] = array('id' => $eData['id'], 'name' => $eData['name'] . ', ' . $eData['jobtitle'], 'profileimg' => $eData['profileimg']);
}
foreach ($candidateData as $cData) {
$candArr[] = array('id' => $cData['id'], 'name' => $cData['name'], 'profileimg' => '');
}
if (sapp_Global::_isactivemodule(RESOURCEREQUISITION)) {
$specimenArr = array_merge($empArr, $candArr);
} else {
$specimenArr = $empArr;
}
$specimenArr = sapp_Global::aasort($specimenArr, 'name');
$this->view->specimenArr = $specimenArr;
/* */
$candid = $this->getRequest()->getParam('candid');
$empid = $this->getRequest()->getParam('empid');
$personalData = '';
$addressData = '';
$companyData = '';
if (isset($candid) && $candid != '') {
$empscreeningform->setAttrib('action', BASE_URL . 'empscreening/add/candid/' . $candid);
$empscreeningform->setDefault('employee', 'cand-' . $candid);
$personalData = $empscreeningModel->getEmpPersonalData($candid, 2);
$addressData = $empscreeningModel->getEmpAddressData($candid, 2);
$companyData = $empscreeningModel->getEmpCompanyData($candid, 2);
$empscreeningform->removeElement('employee');
$emp_check = 'no';
} elseif (isset($empid) && $empid != '') {
$empscreeningform->setAttrib('action', BASE_URL . 'empscreening/add/empid/' . $empid);
$empscreeningform->setDefault('employee', 'emp-' . $empid);
$personalData = $empscreeningModel->getEmpPersonalData($empid, 1);
$addressData = $empscreeningModel->getEmpAddressData($empid, 1);
$companyData = $empscreeningModel->getEmpCompanyData($empid, 1);
$empscreeningform->removeElement('employee');
$emp_check = 'no';
}
if (sapp_Global::_isactivemodule(RESOURCEREQUISITION)) {
if (!empty($personalData)) {
if ($personalData[0]['backgroundchk_status'] != 'Yet to start' && $personalData[0]['backgroundchk_status'] != 'Not Applicable') {
$this->view->bgstatus = 'notapplicable';
} else {
$this->view->bgstatus = '';
}
} else {
if (isset($empid) && $empid != '' || isset($candid) && $candid != '') {
$this->view->bgstatus = 'no data';
} else {
$this->view->bgstatus = '';
}
}
} else {
$this->view->bgstatus = 'no data';
}
$hrEmail = 'false';
$mngmntEmail = 'false';
if (!empty($personalData)) {
if (isset($personalData[0]['businessid'])) {
if (defined('BG_CHECKS_HR_' . $personalData[0]['businessid'])) {
$hrEmail = constant('BG_CHECKS_HR_' . $personalData[0]['businessid']);
}
if (defined('BG_CHECKS_MNGMNT_' . $personalData[0]['businessid'])) {
$mngmntEmail = constant('BG_CHECKS_MNGMNT_' . $personalData[0]['businessid']);
}
}
}
$this->view->hrEmail = $hrEmail;
$this->view->mngmntEmail = $mngmntEmail;
/* Check for HR and Management emails END */
$this->view->personalData = $personalData;
$this->view->addressData = $addressData;
$this->view->companyData = $companyData;
$this->view->candid = $candid;
$this->view->empid = $empid;
$empscreeningform->removeElement("bgcheck_status");
//.........這裏部分代碼省略.........