本文整理汇总了PHP中CustomFields::getCustomFieldList方法的典型用法代码示例。如果您正苦于以下问题:PHP CustomFields::getCustomFieldList方法的具体用法?PHP CustomFields::getCustomFieldList怎么用?PHP CustomFields::getCustomFieldList使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CustomFields
的用法示例。
在下文中一共展示了CustomFields::getCustomFieldList方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getAllFields
public static function getAllFields()
{
$allFields = array(self::FIELD_EMPID, self::FIELD_LASTNAME, self::FIELD_FIRSTNAME, self::FIELD_MIDDLENAME, self::FIELD_STREET1, self::FIELD_STREET2, self::FIELD_CITY, self::FIELD_STATE, self::FIELD_ZIP, self::FIELD_GENDER, self::FIELD_BIRTHDATE, self::FIELD_SSN, self::FIELD_EMPSTATUS, self::FIELD_JOINEDDATE, self::FIELD_WORKSTATION, self::FIELD_LOCATION);
$restOfAllFields = array(self::FIELD_WORKSTATE, self::FIELD_SALARY, self::FIELD_PAYFREQUENCY, self::FIELD_FITWSTATUS, self::FIELD_FITWEXCEMPTIONS, self::FIELD_SITWSTATE, self::FIELD_SITWSTATUS, self::FIELD_SITWEXCEMPTIONS, self::FIELD_SUISTATE, self::FIELD_DD1ROUTING, self::FIELD_DD1ACCOUNT, self::FIELD_DD1AMOUNT, self::FIELD_DD1AMOUNTCODE, self::FIELD_DD1CHECKING, self::FIELD_DD2ROUTING, self::FIELD_DD2ACCOUNT, self::FIELD_DD2AMOUNT, self::FIELD_DD2AMOUNTCODE, self::FIELD_DD2CHECKING);
$availableCustomFields = CustomFields::getCustomFieldList();
$customFields = array();
foreach ($availableCustomFields as $fieldObj) {
$customFields[] = 'custom' . $fieldObj->getFieldNumber();
}
$allFields = array_merge($allFields, $customFields, $restOfAllFields);
return $allFields;
}
示例2: reDirect
//.........这里部分代码省略.........
$attachment = new EmpAttach();
$countryinfo = new CountryInfo();
$porinfo = new ProvinceInfo();
$nationinfo = new NationalityInfo();
$location = new models_eimadmin_Location();
$distric = new DistrictInfo();
$jobtit = new JobTitle();
$depen = new EmpDependents();
$ethnicrace = new EthnicRace();
$eeojobcat = new EEOJobCat();
$emplan = new EmpLanguage();
$laninfo = new LanguageInfo();
$emplicen = new EmpLicenses();
$licen = new Licenses();
$empmem = new EmpMembership();
$memtype = new MembershipType();
$memshipinfo = new MembershipInfo();
$emprepto = new EmpRepTo();
$empskill = new EmpSkill();
$skill = new Skills();
$empworkex = new EmpWorkExp();
$empeducation = new EmpEducation();
$education = new Education();
$empTax = new EmpTax();
$form_creator->popArr['nation'] = $nationinfo->getNationCodes();
$form_creator->popArr['loc'] = $location->getLocCodes();
$form_creator->popArr['cntlist'] = $countryinfo->getCountryCodes();
$form_creator->popArr['ethRace'] = $ethnicrace->getEthnicRaceCodes();
$form_creator->popArr['eeojobcat'] = $eeojobcat->getEEOJobCatCodes();
$form_creator->popArr['jobtit'] = $jobtit->getJobTit();
$form_creator->popArr['hier'] = isset($res) ? $res : false;
$form_creator->popArr['cntlist'] = $countrylist = $countryinfo->getCountryCodes();
$form_creator->popArr['ppcntlist'] = $countrylist;
$form_creator->popArr['customFieldList'] = CustomFields::getCustomFieldList();
if ($getArr['capturemode'] == 'addmode') {
$form_creator->popArr['newID'] = $empinfo->getLastId();
if ($object != null) {
$form_creator->popArr['ctlist'] = $corptit->getCorpTitlesEmpInfo($object->cmbSalGrd);
$form_creator->popArr['deslist'] = $des->getDesEmpInfo($object->cmbCorpTit);
$form_creator->popArr['plist'] = $porinfo->getProvinceCodes($object->cmbTaxCountry);
$form_creator->popArr['resplist'] = $porinfo->getProvinceCodes($object->cmbPermCountry);
$form_creator->popArr['resdlist'] = $distric->getDistrictCodes($object->cmbPermProvince);
if (isset($postArr['cmbJobTitle'])) {
$form_creator->popArr['empstatlist'] = $view_controller->xajaxObjCall($postArr['cmbJobTitle'], 'JOB', 'allEmpStat');
}
$form_creator->popArr['ethRace'] = $ethnicrace->getEthnicRaceCodes($object->cmbEthnicRace);
}
} elseif ($getArr['capturemode'] == 'updatemode') {
$form_creator->popArr['editTaxInfo'] = $empTax->getEmployeeTaxInfo($getArr['id']);
$form_creator->popArr['usStateList'] = $porinfo->getProvinceCodes('US');
$form_creator->popArr['empDDAss'] = $ddebit->getEmployeeDirectDebit($getArr['id']);
if (isset($getArr['DDSEQ'])) {
$form_creator->popArr['editDDForm'] = $ddebit->getDirectDebit($getArr['id'], $getArr['DDSEQ']);
}
$form_creator->popArr['editMainArr'] = $empinfo->filterEmpMain($getArr['id']);
$form_creator->popArr['editPersArr'] = $empinfo->filterEmpPers($getArr['id']);
$form_creator->popArr['editJobInfoArr'] = $empJobInfo = $empinfo->filterEmpJobInfo($getArr['id']);
$form_creator->popArr['editCustomInfoArr'] = $empCustomInfo = $empinfo->filterEmpCustomInfo($getArr['id']);
$view_controller = new ViewController();
$form_creator->popArr['empstatlist'] = $view_controller->xajaxObjCall($empJobInfo[0][2], 'JOB', 'allEmpStat');
$empJobTitle = $empJobInfo[0][2];
if (isset($postArr['cmbJobTitle'])) {
$form_creator->popArr['empstatlist'] = $view_controller->xajaxObjCall($postArr['cmbJobTitle'], 'JOB', 'allEmpStat');
$empJobTitle = $postArr['cmbJobTitle'];
}
if (CommonFunctions::isValidId($empJobTitle, 'JOB')) {
示例3: countList
//.........这里部分代码省略.........
$this->membershipinformation = new MembershipInfo();
$message = $this->membershipinformation->countMembershipInfo($schStr, $mode);
return $message;
case 'SSK':
$this->subskillinformation = new SubSkillInfo();
$message = $this->subskillinformation->countSubSkillInfo($schStr, $mode);
return $message;
case 'EXA':
$this->extracurractinfo = new ExtraCurActInfo();
$message = $this->extracurractinfo->countExtraCurActInfo($schStr, $mode);
return $message;
case 'SGR':
$this->salarygrade = new SalaryGrades();
$message = $this->salarygrade->countSalaryGrades($schStr, $mode);
return $message;
case 'DSG':
$this->designation = new Designations();
$message = $this->designation->countDesignations($schStr, $mode);
return $message;
case 'DDI':
$this->designation = new Designations();
$message = $this->designation->countDesignations($schStr, $mode);
return $message;
case 'DQA':
$this->designation = new Designations();
$message = $this->designation->countDesignationsDes($schStr, $mode);
return $message;
case 'JDK':
$this->jdkra = new JDKra();
$message = $this->jdkra->countJDKra($schStr, $mode);
return $message;
case 'EDU':
$this->edu = new Education();
$message = $this->edu->countEducation($schStr, $mode);
return $message;
case 'BCH':
$this->brch = new Branches();
$message = $this->brch->countBranches($schStr, $mode);
return $message;
case 'CCB':
$this->cashben = new CashBen();
$message = $this->cashben->countCashBenefits($schStr, $mode);
return $message;
case 'NCB':
$this->noncashben = new NonCashBen();
$message = $this->noncashben->countNonCashBenefits($schStr, $mode);
return $message;
case 'BBS':
$this->cashben = new CashBen();
$message = $this->cashben->countCashBenefits($schStr, $mode);
return $message;
case 'NBS':
$this->noncashben = new NonCashBen();
$message = $this->noncashben->countNonCashBenefits($schStr, $mode);
return $message;
case 'ETY':
$this->emptyp = new EmployeeType();
$message = $this->emptyp->countEmployeeTypes($schStr, $mode);
return $message;
case 'SBJ':
$this->subjectinfo = new SubjectInfo();
$message = $this->subjectinfo->countSubjectInfo($schStr, $mode);
return $message;
case 'EEC':
$this->eeojobcat = new EEOJobCat();
$message = $this->eeojobcat->countEEOJobCat($schStr, $mode);
return $message;
case 'LIC':
$this->licenses = new Licenses();
$message = $this->licenses->countLicenses($schStr, $mode);
return $message;
case 'USG':
$this->usergroups = new UserGroups();
$message = $this->usergroups->countUserGroups($schStr, $mode);
return $message;
case 'CUS':
$this->custormers = new Customer();
$message = $this->custormers->countcustomerID($schStr, $mode);
return $message;
case 'CTM':
$customerFields = new CustomFields();
$list = $customerFields->getCustomFieldList();
$message = count($list);
return $message;
case 'CEX':
$list = CustomExport::getCustomExportList();
return count($list);
case 'CIM':
$list = CustomImport::getCustomImportList();
return count($list);
case 'PRJ':
$this->projects = new Projects();
$message = $this->projects->countprojectID($schStr, $mode);
return $message;
case 'USR':
$this->users = new Users();
$message = $this->users->countUsers($schStr, $mode, $esp);
return $message;
}
}
示例4: sprintf
$text .= sprintf("%s", "\"Assistant's Name\",\"Billing Information\",\"Birthday\",\"Categories\",\"Children\",");
// Fields 56 - 60
$text .= sprintf("%s", "\"Directory Server\",\"E-mail Address\",\"E-mail Type\",\"E-mail Display Name\",\"E-mail 2 Address\",");
// Fields 61 - 65
$text .= sprintf("%s", "\"E-mail 2 Type\",\"E-mail 2 Display Name\",\"E-mail 3 Address\",\"E-mail 3 Type\",\"E-mail 3 Display Name\",");
// Fields 66 - 70
$text .= sprintf("%s", "\"Gender\",\"Government ID Number\",\"Hobby\",\"Initials\",\"Internet Free Busy\",");
// Fields 71 - 75
$text .= sprintf("%s", "\"Keywords\",\"Language\",\"Location\",\"Manager's Name\",\"Mileage\",");
// Fields 76 - 80
$text .= sprintf("%s", "\"Notes\",\"Office Location\",\"Organizational ID Number\",\"PO Box\",\"Priority\",");
// Fields 81 - 85
$text .= sprintf("%s", "\"Private\",\"Profession\",\"Referred By\",\"Sensitivity\",\"Spouse\",");
// Fields 86 - 90
$text .= sprintf("%s", "\"User 1\",\"User 2\",\"User 3\",\"User 4\",\"Web Page\",");
$custom_fields = CustomFields::getCustomFieldList('contacts');
foreach ($custom_fields as $f) {
$text .= sprintf("%s", "\"{$f['field_description']}\",");
}
$text .= sprintf("%s\r\n", "");
$contactList = CContact::searchContacts($AppUI);
foreach ($contactList as $contact) {
// Fields 1- 10
$text .= sprintf("\"\",\"%s\",\"\",\"%s\",\"\",\"%s\",\"%s\",\"%s\",\"%s\",\"%s\",", $contact['contact_first_name'], $contact['contact_last_name'], $contact['company_name'], $contact['dept_name'], $contact['contact_title'], $contact['contact_address1'], $contact['contact_address2']);
// Fields 11- 20
$text .= sprintf(",\"%s\",\"%s\",\"%s\",,,,,,,", $contact['contact_city'], $contact['contact_state'], $contact['contact_zip']);
// Fields 21- 30
$text .= sprintf(",,,,,,,,,,");
// Fields 31- 40
settype($contact['contact_phone'], 'string');
$text .= sprintf(",\"%s\",,,,,,,,,", $contact['contact_phone']);