當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sapp_Global::aasort方法代碼示例

本文整理匯總了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");
//.........這裏部分代碼省略.........
開發者ID:lukkyrich,項目名稱:sentrifugo,代碼行數:101,代碼來源:EmpscreeningController.php


注:本文中的sapp_Global::aasort方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。