当前位置: 首页>>代码示例>>PHP>>正文


PHP Misc::arrayIntersectByKey方法代码示例

本文整理汇总了PHP中Misc::arrayIntersectByKey方法的典型用法代码示例。如果您正苦于以下问题:PHP Misc::arrayIntersectByKey方法的具体用法?PHP Misc::arrayIntersectByKey怎么用?PHP Misc::arrayIntersectByKey使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Misc的用法示例。


在下文中一共展示了Misc::arrayIntersectByKey方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'round_type':
             $retval = array(10 => TTi18n::gettext('Down'), 20 => TTi18n::gettext('Average'), 30 => TTi18n::gettext('Up'));
             break;
         case 'punch_type':
             $retval = array(10 => TTi18n::gettext('All Punches'), 20 => TTi18n::gettext('All In (incl. Lunch/Break)'), 30 => TTi18n::gettext('All Out (incl. Lunch/Break)'), 40 => TTi18n::gettext('Normal - In'), 50 => TTi18n::gettext('Normal - Out'), 60 => TTi18n::gettext('Lunch - In'), 70 => TTi18n::gettext('Lunch - Out'), 80 => TTi18n::gettext('Break - In'), 90 => TTi18n::gettext('Break - Out'), 100 => TTi18n::gettext('Lunch Total'), 110 => TTi18n::gettext('Break Total'), 120 => TTi18n::gettext('Day Total'));
             break;
         case 'punch_type_relation':
             $retval = array(40 => array(10, 20), 50 => array(10, 30, 120), 60 => array(10, 20, 100), 70 => array(10, 30), 80 => array(10, 20, 110), 90 => array(10, 30));
             break;
         case 'columns':
             $retval = array('-1010-punch_type' => TTi18n::gettext('Punch Type'), '-1020-round_type' => TTi18n::gettext('Round Type'), '-1030-name' => TTi18n::gettext('Name'), '-1030-round_interval' => TTi18n::gettext('Interval'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('punch_type', 'round_type', 'name', 'updated_date', 'updated_by');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:34,代码来源:RoundIntervalPolicyFactory.class.php

示例2: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'object_type':
             $hotlf = TTnew('HierarchyObjectTypeListFactory');
             $retval = $hotlf->getOptions('object_type');
             break;
         case 'short_object_type':
             $hotlf = TTnew('HierarchyObjectTypeListFactory');
             $retval = $hotlf->getOptions('short_object_type');
             break;
         case 'columns':
             $retval = array('-1010-name' => TTi18n::gettext('Name'), '-1020-description' => TTi18n::gettext('Description'), '-1030-superiors' => TTi18n::gettext('Superiors'), '-1030-subordinates' => TTi18n::gettext('Subordinates'), '-1050-object_type_display' => TTi18n::gettext('Objects'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('name', 'description', 'superiors', 'subordinates', 'object_type_display');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:33,代码来源:HierarchyControlFactory.class.php

示例3: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1010-first_name' => TTi18n::gettext('First Name'), '-1020-last_name' => TTi18n::gettext('Last Name'), '-1030-recurring_schedule_template_control' => TTi18n::gettext('Template'), '-1040-recurring_schedule_template_control_description' => TTi18n::gettext('Description'), '-1050-start_date' => TTi18n::gettext('Start Date'), '-1060-end_date' => TTi18n::gettext('End Date'), '-1070-auto_fill' => TTi18n::gettext('Auto-Punch'), '-1090-title' => TTi18n::gettext('Title'), '-1099-user_group' => TTi18n::gettext('Group'), '-1100-default_branch' => TTi18n::gettext('Branch'), '-1110-default_department' => TTi18n::gettext('Department'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('first_name', 'last_name', 'recurring_schedule_template_control', 'recurring_schedule_template_control_description', 'start_date', 'end_date');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:25,代码来源:RecurringScheduleControlFactory.class.php

示例4: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'type':
             $retval = array(10 => TTi18n::gettext('Daily'), 20 => TTi18n::gettext('Weekly'), 30 => TTi18n::gettext('Bi-Weekly'), 40 => TTi18n::gettext('Sunday'), 50 => TTi18n::gettext('Monday'), 60 => TTi18n::gettext('Tuesday'), 70 => TTi18n::gettext('Wednesday'), 80 => TTi18n::gettext('Thursday'), 90 => TTi18n::gettext('Friday'), 100 => TTi18n::gettext('Saturday'), 150 => TTi18n::gettext('2 Or More Days/Week Consecutively Worked'), 151 => TTi18n::gettext('3 Or More Days/Week Consecutively Worked'), 152 => TTi18n::gettext('4 Or More Days/Week Consecutively Worked'), 153 => TTi18n::gettext('5 Or More Days/Week Consecutively Worked'), 154 => TTi18n::gettext('6 Or More Days/Week Consecutively Worked'), 155 => TTi18n::gettext('7 Or More Days/Week Consecutively Worked'), 180 => TTi18n::gettext('Holiday'), 200 => TTi18n::gettext('Over Schedule (Daily) / No Schedule'), 210 => TTi18n::gettext('Over Schedule (Weekly) / No Schedule'), 300 => TTi18n::gettext('2 Or More Days Consecutively Worked'), 301 => TTi18n::gettext('3 Or More Days Consecutively Worked'), 302 => TTi18n::gettext('4 Or More Days Consecutively Worked'), 303 => TTi18n::gettext('5 Or More Days Consecutively Worked'), 304 => TTi18n::gettext('6 Or More Days Consecutively Worked'), 305 => TTi18n::gettext('7 Or More Days Consecutively Worked'), 350 => TTi18n::gettext('2nd Consecutive Day Worked'), 351 => TTi18n::gettext('3rd Consecutive Day Worked'), 352 => TTi18n::gettext('4th Consecutive Day Worked'), 353 => TTi18n::gettext('5th Consecutive Day Worked'), 354 => TTi18n::gettext('6th Consecutive Day Worked'), 355 => TTi18n::gettext('7th Consecutive Day Worked'));
             break;
         case 'calculation_order':
             $retval = array(10 => 90, 20 => 200, 30 => 300, 40 => 20, 50 => 30, 60 => 40, 70 => 50, 80 => 60, 90 => 70, 100 => 80, 150 => 92, 151 => 91, 152 => 90, 153 => 89, 154 => 88, 155 => 87, 300 => 98, 301 => 97, 302 => 96, 303 => 95, 304 => 94, 305 => 93, 350 => 86, 351 => 85, 352 => 84, 353 => 83, 354 => 82, 355 => 81, 180 => 10, 200 => 100, 210 => 210);
             break;
         case 'columns':
             $retval = array('-1010-type' => TTi18n::gettext('Type'), '-1020-name' => TTi18n::gettext('Name'), '-1030-trigger_time' => TTi18n::gettext('Active After'), '-1040-rate' => TTi18n::gettext('Rate'), '-1050-accrual_rate' => TTi18n::gettext('Accrual Rate'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('type', 'name', 'updated_date', 'updated_by');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:OverTimePolicyFactory.class.php

示例5: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1010-level' => TTi18n::gettext('Level'), '-1020-user' => TTi18n::gettext('Superior'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('level', 'user');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:25,代码来源:HierarchyLevelFactory.class.php

示例6: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'type':
             $retval = array(10 => TTi18n::gettext('Standard'), 20 => TTi18n::gettext('Calendar Based'), 30 => TTi18n::gettext('Hour Based'));
             break;
         case 'apply_frequency':
             $retval = array(10 => TTi18n::gettext('each Pay Period'), 20 => TTi18n::gettext('Annually'), 30 => TTi18n::gettext('Monthly'), 40 => TTi18n::gettext('Weekly'));
             break;
         case 'columns':
             $retval = array('-1010-type' => TTi18n::gettext('Type'), '-1030-name' => TTi18n::gettext('Name'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('type', 'name', 'updated_date', 'updated_by');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:AccrualPolicyFactory.class.php

示例7: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'type':
             //Exception life-cycle
             //
             // - Exception occurs, such as missed out punch, in late.
             //   - If the exception is pre-mature, we wait 16-24hrs for it to become a full-blown exception
             // - If the exception requires authorization, it sits in a pending state waiting for supervsior intervention.
             // - Supervisor authorizes the exception, or makes a correction, leaves a note or something.
             //	 - Exception no longer appears on timesheet/exception list.
             $retval = array(5 => TTi18n::gettext('Pre-Mature'), 30 => TTi18n::gettext('PENDING AUTHORIZATION'), 40 => TTi18n::gettext('AUTHORIZATION OPEN'), 50 => TTi18n::gettext('ACTIVE'), 55 => TTi18n::gettext('AUTHORIZATION DECLINED'), 60 => TTi18n::gettext('DISABLED'), 70 => TTi18n::gettext('Corrected'));
             break;
         case 'columns':
             $retval = array('-1000-first_name' => TTi18n::gettext('First Name'), '-1002-last_name' => TTi18n::gettext('Last Name'), '-1010-title' => TTi18n::gettext('Title'), '-1039-group' => TTi18n::gettext('Group'), '-1050-default_branch' => TTi18n::gettext('Default Branch'), '-1060-default_department' => TTi18n::gettext('Default Department'), '-1070-branch' => TTi18n::gettext('Branch'), '-1080-department' => TTi18n::gettext('Department'), '-1090-country' => TTi18n::gettext('Country'), '-1100-province' => TTi18n::gettext('Province'), '-1120-date_stamp' => TTi18n::gettext('Date'), '-1130-severity' => TTi18n::gettext('Severity'), '-1140-exception_policy_type' => TTi18n::gettext('Exception'), '-1150-exception_policy_type_id' => TTi18n::gettext('Code'), '-1160-policy_group' => TTi18n::gettext('Policy Group'), '-1170-permission_group' => TTi18n::gettext('Permission Group'), '-1200-pay_period_schedule' => TTi18n::gettext('Pay Period Schedule'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey(array('date_stamp', 'severity', 'exception_policy_type', 'exception_policy_type_id'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('first_name', 'last_name', 'date_stamp', 'severity', 'exception_policy_type', 'exception_policy_type_id');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:34,代码来源:ExceptionFactory.class.php

示例8: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'type':
             $retval = array(10 => TTi18n::gettext('Accolade'), 15 => TTi18n::gettext('Discipline'), 20 => TTi18n::gettext('Review (General)'), 25 => TTi18n::gettext('Review (Wage)'), 30 => TTi18n::gettext('Review (Performance)'), 35 => TTi18n::gettext('Accident/Injury'), 37 => TTi18n::gettext('Background Check'), 38 => TTi18n::gettext('Drug Test'), 40 => TTi18n::gettext('Entrance Interview'), 45 => TTi18n::gettext('Exit Interview'));
             break;
         case 'term':
             $retval = array(10 => TTi18n::gettext('Positive'), 20 => TTi18n::gettext('Neutral'), 30 => TTi18n::gettext('Negative'));
             break;
         case 'severity':
             $retval = array(10 => TTi18n::gettext('Normal'), 20 => TTi18n::gettext('Low'), 30 => TTi18n::gettext('Medium'), 40 => TTi18n::gettext('High'), 50 => TTi18n::gettext('Critical'));
             break;
         case 'status':
             $retval = array(10 => TTi18n::gettext('Scheduled'), 20 => TTi18n::gettext('Being Reviewed'), 30 => TTi18n::gettext('Complete'));
             break;
         case 'columns':
             $retval = array('-4070-user' => TTi18n::gettext('Employee Name'), '-4080-reviewer_user' => TTi18n::gettext('Reviewer Name'), '-1170-start_date' => TTi18n::gettext('Start Date'), '-1180-end_date' => TTi18n::gettext('End Date'), '-4090-due_date' => TTi18n::gettext('Due Date'), '-1040-type' => TTi18n::gettext('Type'), '-1060-term' => TTi18n::gettext('Terms'), '-1010-severity' => TTi18n::gettext('Severity/Importance'), '-1020-status' => TTi18n::gettext('Status'), '-1050-rating' => TTi18n::gettext('Overall Rating'), '-1200-note' => TTi18n::gettext('Notes'), '-1300-tag' => TTi18n::gettext('Tags'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('user', 'reviewer_user', 'type', 'term', 'severity', 'start_date', 'end_date', 'due_date');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:33,代码来源:UserReviewControlFactory.class.php

示例9: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'status':
             $retval = array(10 => TTi18n::gettext('ENABLED'), 20 => TTi18n::gettext('DISABLED'));
             break;
         case 'columns':
             $retval = array('-1010-status' => TTi18n::gettext('Status'), '-1020-manual_id' => TTi18n::gettext('Code'), '-1030-name' => TTi18n::gettext('Name'), '-1140-address1' => TTi18n::gettext('Address 1'), '-1150-address2' => TTi18n::gettext('Address 2'), '-1160-city' => TTi18n::gettext('City'), '-1170-province' => TTi18n::gettext('Province/State'), '-1180-country' => TTi18n::gettext('Country'), '-1190-postal_code' => TTi18n::gettext('Postal Code'), '-1200-work_phone' => TTi18n::gettext('Work Phone'), '-1210-fax_phone' => TTi18n::gettext('Fax Phone'), '-1300-tag' => TTi18n::gettext('Tags'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('manual_id', 'name', 'city', 'province');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name', 'manual_id');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array('country', 'province', 'postal_code');
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:28,代码来源:BranchFactory.class.php

示例10: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'default_schedule_status':
             $sf = TTnew('ScheduleFactory');
             $retval = $sf->getOptions('status');
             break;
         case 'type':
             $retval = array(10 => TTi18n::gettext('Standard'), 20 => TTi18n::gettext('Advanced: Fixed'), 30 => TTi18n::gettext('Advanced: Average'));
             break;
         case 'scheduled_day':
             $retval = array(0 => TTi18n::gettext('Calendar Days'), 1 => TTi18n::gettext('Scheduled Days'), 2 => TTi18n::gettext('Holiday Week Days'));
             break;
         case 'columns':
             $retval = array('-1020-name' => TTi18n::gettext('Name'), '-1010-type' => TTi18n::gettext('Type'), '-1010-default_schedule_status' => TTi18n::gettext('Default Schedule Status'), '-1010-minimum_employed_days' => TTi18n::gettext('Minimum Employed Days'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('name', 'type', 'updated_date', 'updated_by');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:35,代码来源:HolidayPolicyFactory.class.php

示例11: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'status':
             $retval = array(10 => TTi18n::gettext('ENABLED'), 20 => TTi18n::gettext('DISABLED'));
             break;
         case 'country_currency':
             //Country to primary currency mappings.
             $retval = array('AF' => 'AFA', 'AL' => 'ALL', 'DZ' => 'DZD', 'AS' => 'USD', 'AD' => 'EUR', 'AO' => 'AON', 'AI' => 'XCD', 'AQ' => 'NOK', 'AG' => 'XCD', 'AR' => 'ARA', 'AM' => 'AMD', 'AW' => 'AWG', 'AU' => 'AUD', 'AT' => 'EUR', 'AZ' => 'AZM', 'BS' => 'BSD', 'BH' => 'BHD', 'BD' => 'BDT', 'BB' => 'BBD', 'BY' => 'BYR', 'BE' => 'EUR', 'BZ' => 'BZD', 'BJ' => 'XAF', 'BM' => 'BMD', 'BT' => 'BTN', 'BO' => 'BOB', 'BA' => 'BAM', 'BW' => 'BWP', 'BV' => 'NOK', 'BR' => 'BRR', 'IO' => 'GBP', 'BN' => 'BND', 'BG' => 'BGL', 'BF' => 'XAF', 'BI' => 'BIF', 'KH' => 'KHR', 'CM' => 'XAF', 'CA' => 'CAD', 'CV' => 'CVE', 'KY' => 'KYD', 'CF' => 'XAF', 'TD' => 'XAF', 'CL' => 'CLF', 'CN' => 'CNY', 'CX' => 'AUD', 'CC' => 'AUD', 'CO' => 'COP', 'KM' => 'KMF', 'CG' => 'XAF', 'CK' => 'NZD', 'CR' => 'CRC', 'HR' => 'HRK', 'CU' => 'CUP', 'CY' => 'CYP', 'CZ' => 'CZK', 'DK' => 'DKK', 'DJ' => 'DJF', 'DM' => 'XCD', 'DO' => 'DOP', 'TP' => 'TPE', 'EC' => 'USD', 'EG' => 'EGP', 'SV' => 'SVC', 'GQ' => 'XAF', 'ER' => 'ERN', 'EE' => 'EEK', 'ET' => 'ETB', 'FK' => 'FKP', 'FO' => 'DKK', 'FJ' => 'FJD', 'FI' => 'EUR', 'FR' => 'EUR', 'FX' => 'EUR', 'GF' => 'EUR', 'PF' => 'XPF', 'TF' => 'EUR', 'GA' => 'XAF', 'GM' => 'GMD', 'GE' => 'GEL', 'DE' => 'EUR', 'GH' => 'GHC', 'GI' => 'GIP', 'GR' => 'EUR', 'GL' => 'DKK', 'GD' => 'XCD', 'GP' => 'EUR', 'GU' => 'USD', 'GT' => 'GTQ', 'GN' => 'GNS', 'GW' => 'GWP', 'GY' => 'GYD', 'HT' => 'HTG', 'HM' => 'AUD', 'VA' => 'EUR', 'HN' => 'HNL', 'HK' => 'HKD', 'HU' => 'HUF', 'IS' => 'ISK', 'IN' => 'INR', 'ID' => 'IDR', 'IR' => 'IRR', 'IQ' => 'IQD', 'IE' => 'EUR', 'IL' => 'ILS', 'IT' => 'EUR', 'CI' => 'XAF', 'JM' => 'JMD', 'JP' => 'JPY', 'JO' => 'JOD', 'KZ' => 'KZT', 'KE' => 'KES', 'KI' => 'AUD', 'KP' => 'KPW', 'KR' => 'KRW', 'KW' => 'KWD', 'KG' => 'KGS', 'LA' => 'LAK', 'LV' => 'LVL', 'LB' => 'LBP', 'LS' => 'LSL', 'LR' => 'LRD', 'LY' => 'LYD', 'LI' => 'CHF', 'LT' => 'LTL', 'LU' => 'EUR', 'MO' => 'MOP', 'MK' => 'MKD', 'MG' => 'MGF', 'MW' => 'MWK', 'MY' => 'MYR', 'MV' => 'MVR', 'ML' => 'XAF', 'MT' => 'MTL', 'MH' => 'USD', 'MQ' => 'EUR', 'MR' => 'MRO', 'MU' => 'MUR', 'YT' => 'EUR', 'MX' => 'MXN', 'FM' => 'USD', 'MD' => 'MDL', 'MC' => 'EUR', 'MN' => 'MNT', 'MS' => 'XCD', 'MA' => 'MAD', 'MZ' => 'MZM', 'MM' => 'MMK', 'NA' => 'NAD', 'NR' => 'AUD', 'NP' => 'NPR', 'NL' => 'EUR', 'AN' => 'ANG', 'NC' => 'XPF', 'NZ' => 'NZD', 'NI' => 'NIC', 'NE' => 'XOF', 'NG' => 'NGN', 'NU' => 'NZD', 'NF' => 'AUD', 'MP' => 'USD', 'NO' => 'NOK', 'OM' => 'OMR', 'PK' => 'PKR', 'PW' => 'USD', 'PA' => 'PAB', 'PG' => 'PGK', 'PY' => 'PYG', 'PE' => 'PEI', 'PH' => 'PHP', 'PN' => 'NZD', 'PL' => 'PLN', 'PT' => 'EUR', 'PR' => 'USD', 'QA' => 'QAR', 'RE' => 'EUR', 'RO' => 'ROL', 'RU' => 'RUB', 'RW' => 'RWF', 'KN' => 'XCD', 'LC' => 'XCD', 'VC' => 'XCD', 'WS' => 'WST', 'SM' => 'EUR', 'ST' => 'STD', 'SA' => 'SAR', 'SN' => 'XOF', 'CS' => 'CSD', 'SC' => 'SCR', 'SL' => 'SLL', 'SG' => 'SGD', 'SK' => 'SKK', 'SI' => 'SIT', 'SB' => 'SBD', 'SO' => 'SOS', 'ZA' => 'ZAR', 'GS' => 'GBP', 'ES' => 'EUR', 'LK' => 'LKR', 'SH' => 'SHP', 'PM' => 'EUR', 'SD' => 'SDP', 'SR' => 'SRG', 'SJ' => 'NOK', 'SZ' => 'SZL', 'SE' => 'SEK', 'CH' => 'CHF', 'SY' => 'SYP', 'TW' => 'TWD', 'TJ' => 'TJR', 'TZ' => 'TZS', 'TH' => 'THB', 'TG' => 'XAF', 'TK' => 'NZD', 'TO' => 'TOP', 'TT' => 'TTD', 'TN' => 'TND', 'TR' => 'TRL', 'TM' => 'TMM', 'TC' => 'USD', 'TV' => 'AUD', 'UG' => 'UGS', 'UA' => 'UAH', 'SU' => 'SUR', 'AE' => 'AED', 'GB' => 'GBP', 'US' => 'USD', 'UM' => 'USD', 'UY' => 'UYU', 'UZ' => 'UZS', 'VU' => 'VUV', 'VE' => 'VEB', 'VN' => 'VND', 'VG' => 'USD', 'VI' => 'USD', 'WF' => 'XPF', 'XO' => 'XOF', 'EH' => 'MAD', 'YE' => 'YER', 'ZM' => 'ZMW', 'ZW' => 'ZWD');
             break;
         case 'round_decimal_places':
             $retval = array(0 => 0, 1 => 1, 2 => 2, 3 => 3, 4 => 4);
             break;
         case 'columns':
             $retval = array('-1000-status' => TTi18n::gettext('Status'), '-1010-name' => TTi18n::gettext('Name'), '-1020-symbol' => TTi18n::gettext('Symbol'), '-1020-iso_code' => TTi18n::gettext('ISO Code'), '-1030-conversion_rate' => TTi18n::gettext('Conversion Rate'), '-1040-auto_update' => TTi18n::gettext('Auto Update'), '-1050-actual_rate' => TTi18n::gettext('Actual Rate'), '-1060-actual_rate_updated_date' => TTi18n::gettext('Last Downloaded Date'), '-1070-rate_modify_percent' => TTi18n::gettext('Rate Modify Percent'), '-1080-is_default' => TTi18n::gettext('Default Currency'), '-1090-is_base' => TTi18n::gettext('Base Currency'), '-1100-round_decimal_places' => TTi18n::gettext('Round Decimal Places'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey(array('name', 'iso_code', 'status'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('status', 'name', 'iso_code', 'conversion_rate', 'is_default', 'is_base');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name', 'is_default', 'is_base');
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:CurrencyFactory.class.php

示例12: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'status':
             $retval = array(10 => TTi18n::gettext('ENABLED'), 20 => TTi18n::gettext('DISABLED'));
             break;
         case 'type':
             $retval = array(10 => TTi18n::gettext('Spouse/Partner'), 20 => TTi18n::gettext('Parent/Guardian'), 30 => TTi18n::gettext('Sibling'), 40 => TTi18n::gettext('Child'), 50 => TTi18n::gettext('Relative'), 60 => TTi18n::gettext('Dependant'), 70 => TTi18n::gettext('Emergency Contact'));
             break;
         case 'sex':
             $retval = array(5 => TTi18n::gettext('Unspecified'), 10 => TTi18n::gettext('Male'), 20 => TTi18n::gettext('Female'));
             break;
         case 'columns':
             $retval = array('-1090-employee_first_name' => TTi18n::gettext('Employee First Name'), '-1110-employee_last_name' => TTi18n::gettext('Employee Last Name'), '-1010-title' => TTi18n::gettext('Employee Title'), '-1099-user_group' => TTi18n::gettext('Employee Group'), '-1100-default_branch' => TTi18n::gettext('Employee Branch'), '-1030-default_department' => TTi18n::gettext('Employee Department'), '-1060-first_name' => TTi18n::gettext('First Name'), '-1070-middle_name' => TTi18n::gettext('Middle Name'), '-1080-last_name' => TTi18n::gettext('Last Name'), '-1020-status' => TTi18n::gettext('Status'), '-1050-type' => TTi18n::getText('Type'), '-1120-sex' => TTi18n::gettext('Gender'), '-1125-ethnic_group' => TTi18n::gettext('Ethnic Group'), '-1130-address1' => TTi18n::gettext('Address 1'), '-1140-address2' => TTi18n::gettext('Address 2'), '-1150-city' => TTi18n::gettext('City'), '-1160-province' => TTi18n::gettext('Province/State'), '-1170-country' => TTi18n::gettext('Country'), '-1180-postal_code' => TTi18n::gettext('Postal Code'), '-1190-work_phone' => TTi18n::gettext('Work Phone'), '-1191-work_phone_ext' => TTi18n::gettext('Work Phone Ext'), '-1200-home_phone' => TTi18n::gettext('Home Phone'), '-1210-mobile_phone' => TTi18n::gettext('Mobile Phone'), '-1220-fax_phone' => TTi18n::gettext('Fax Phone'), '-1230-home_email' => TTi18n::gettext('Home Email'), '-1240-work_email' => TTi18n::gettext('Work Email'), '-1250-birth_date' => TTi18n::gettext('Birth Date'), '-1280-sin' => TTi18n::gettext('SIN/SSN'), '-1290-note' => TTi18n::gettext('Note'), '-1300-tag' => TTi18n::gettext('Tags'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('employee_first_name', 'employee_last_name', 'title', 'user_group', 'default_branch', 'default_department', 'type', 'first_name', 'last_name', 'home_phone');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('sin');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array('country', 'province', 'postal_code');
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:34,代码来源:UserContactFactory.class.php

示例13: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'object_type':
             $retval = array(100 => 'company', 110 => 'branch', 120 => 'department', 130 => 'stations', 140 => 'hierarchy', 150 => 'request', 160 => 'message', 170 => 'policy_group', 200 => 'users', 210 => 'user_wage', 220 => 'user_title', 230 => 'user_contact', 250 => 'qualification', 251 => 'user_skill', 252 => 'user_education', 253 => 'user_license', 254 => 'user_language', 255 => 'user_membership', 300 => 'pay_stub_amendment', 310 => 'kpi', 320 => 'user_review_control', 330 => 'user_review', 350 => 'job_vacancy', 360 => 'job_applicant', 370 => 'job_applicant_location', 380 => 'job_applicant_employment', 390 => 'job_applicant_reference', 391 => 'job_applicant_skill', 392 => 'job_applicant_education', 393 => 'job_applicant_language', 394 => 'job_applicant_license', 395 => 'job_applicant_membership', 400 => 'schedule', 410 => 'recurring_schedule_template', 500 => 'report', 510 => 'report_schedule', 600 => 'job', 610 => 'job_item', 700 => 'document', 800 => 'client', 810 => 'client_contact', 820 => 'client_payment', 900 => 'product', 910 => 'invoice', 950 => 'job_application');
             break;
         case 'columns':
             $retval = array('-1010-object_type' => TTi18n::gettext('Object'), '-1020-name' => TTi18n::gettext('Name'), '-1030-description' => TTi18n::gettext('Description'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('name', 'description');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:28,代码来源:CompanyGenericTagFactory.class.php

示例14: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'status':
             $retval = array(10 => TTi18n::gettext('In'), 20 => TTi18n::gettext('Out'));
             break;
         case 'type':
             $retval = array(10 => TTi18n::gettext('Normal'), 20 => TTi18n::gettext('Lunch'), 30 => TTi18n::gettext('Break'));
             break;
         case 'transfer':
             $retval = array(0 => TTi18n::gettext('No'), 1 => TTi18n::gettext('Yes'));
             break;
         case 'columns':
             $retval = array('-1000-first_name' => TTi18n::gettext('First Name'), '-1002-last_name' => TTi18n::gettext('Last Name'), '-1010-title' => TTi18n::gettext('Title'), '-1039-group' => TTi18n::gettext('Group'), '-1040-default_branch' => TTi18n::gettext('Default Branch'), '-1050-default_department' => TTi18n::gettext('Default Department'), '-1160-branch' => TTi18n::gettext('Branch'), '-1170-department' => TTi18n::gettext('Department'), '-1180-job' => TTi18n::gettext('Job'), '-1190-job_item' => TTi18n::gettext('Task'), '-1200-type' => TTi18n::gettext('Type'), '-1202-status' => TTi18n::gettext('Status'), '-1210-date_stamp' => TTi18n::gettext('Date'), '-1220-time_stamp' => TTi18n::gettext('Time'), '-1230-tainted' => TTi18n::gettext('Tainted'), '-1310-station_station_id' => TTi18n::gettext('Station ID'), '-1320-station_type' => TTi18n::gettext('Station Type'), '-1330-station_source' => TTi18n::gettext('Station Source'), '-1340-station_description' => TTi18n::gettext('Station Description'), '-2000-created_by' => TTi18n::gettext('Created By'), '-2010-created_date' => TTi18n::gettext('Created Date'), '-2020-updated_by' => TTi18n::gettext('Updated By'), '-2030-updated_date' => TTi18n::gettext('Updated Date'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('first_name', 'last_name', 'type', 'status', 'date_stamp', 'time_stamp');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:34,代码来源:PunchFactory.class.php

示例15: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'action':
             $retval = array(10 => TTi18n::gettext('Add'), 20 => TTi18n::gettext('Edit'), 30 => TTi18n::gettext('Delete'), 31 => TTi18n::gettext('Delete (F)'), 40 => TTi18n::gettext('UnDelete'), 100 => TTi18n::gettext('Login'), 110 => TTi18n::gettext('Logout'), 200 => TTi18n::gettext('Allow'), 210 => TTi18n::gettext('Deny'), 500 => TTi18n::gettext('Notice'), 510 => TTi18n::gettext('Warning'), 900 => TTi18n::gettext('Other'));
             break;
         case 'table_name':
             $retval = array('authentication' => TTi18n::getText('Authentication'), 'company' => TTi18n::getText('Company'), 'branch' => TTi18n::getText('Branch'), 'department' => TTi18n::getText('Department'), 'currency' => TTi18n::getText('Currency'), 'accrual' => TTi18n::getText('Accrual'), 'authorizations' => TTi18n::getText('Authorizations'), 'request' => TTi18n::getText('Request'), 'message' => TTi18n::getText('Messages'), 'message_control' => TTi18n::getText('Messages'), 'holidays' => TTi18n::getText('Holidays'), 'bank_account' => TTi18n::getText('Bank Account'), 'roe' => TTi18n::getText('Record of Employment'), 'station' => TTi18n::getText('Station'), 'station_user_group' => TTi18n::getText('Station Employee Group'), 'station_branch' => TTi18n::getText('Station Branch'), 'station_department' => TTi18n::getText('Station Department'), 'station_include_user' => TTi18n::getText('Station Include Employee'), 'station_exclude_user' => TTi18n::getText('Station Exclude Employee'), 'station' => TTi18n::getText('Station'), 'punch' => TTi18n::getText('Punch'), 'punch_control' => TTi18n::getText('Punch Control'), 'exception' => TTi18n::getText('Exceptions'), 'schedule' => TTi18n::getText('Schedule'), 'other_field' => TTi18n::getText('Other Field'), 'system_setting' => TTi18n::getText('System Setting'), 'cron' => TTi18n::getText('Maintenance Jobs'), 'permission_control' => TTi18n::getText('Permission Groups'), 'permission_user' => TTi18n::getText('Permission Employees'), 'permission' => TTi18n::getText('Permissions'), 'policy_group' => TTi18n::getText('Policy Group'), 'policy_group_user' => TTi18n::getText('Policy Group Employees'), 'schedule_policy' => TTi18n::getText('Schedule Policy'), 'round_interval_policy' => TTi18n::getText('Rounding Policy'), 'meal_policy' => TTi18n::getText('Meal Policy'), 'break_policy' => TTi18n::getText('Break Policy'), 'accrual_policy' => TTi18n::getText('Accrual Policy'), 'accrual_policy_milestone' => TTi18n::getText('Accrual Policy Milestone'), 'over_time_policy' => TTi18n::getText('Overtime Policy'), 'premium_policy' => TTi18n::getText('Premium Policy'), 'premium_policy_branch' => TTi18n::getText('Premium Policy Branch'), 'premium_policy_department' => TTi18n::getText('Premium Policy Department'), 'premium_policy_job_group' => TTi18n::getText('Premium Policy Job Group'), 'premium_policy_job' => TTi18n::getText('Premium Policy Job'), 'premium_policy_job_item_group' => TTi18n::getText('Premium Policy Task Group'), 'premium_policy_job_item' => TTi18n::getText('Premium Policy Task'), 'absence_policy' => TTi18n::getText('Absense Policy'), 'exception_policy_control' => TTi18n::getText('Exception Policy (Control)'), 'exception_policy' => TTi18n::getText('Exception Policy'), 'holiday_policy' => TTi18n::getText('Holiday Policy'), 'holiday_policy_recurring_holiday' => TTi18n::getText('Holiday Policy'), 'pay_period' => TTi18n::getText('Pay Period'), 'pay_period_schedule' => TTi18n::getText('Pay Period Schedule'), 'pay_period_schedule_user' => TTi18n::getText('Pay Period Schedule Employees'), 'pay_period_time_sheet_verify' => TTi18n::getText('TimeSheet Verify'), 'pay_stub' => TTi18n::getText('Pay Stub'), 'pay_stub_amendment' => TTi18n::getText('Pay Stub Amendment'), 'pay_stub_entry_account' => TTi18n::getText('Pay Stub Account'), 'pay_stub_entry_account_link' => TTi18n::getText('Pay Stub Account Linking'), 'recurring_holiday' => TTi18n::getText('Recurring Holiday'), 'recurring_ps_amendment' => TTi18n::getText('Recurring PS Amendment'), 'recurring_ps_amendment_user' => TTi18n::getText('Recurring PS Amendment Employees'), 'recurring_schedule_control' => TTi18n::getText('Recurring Schedule'), 'recurring_schedule_user' => TTi18n::getText('Recurring Schedule Employees'), 'recurring_schedule_template_control' => TTi18n::getText('Recurring Schedule Template'), 'recurring_schedule_template' => TTi18n::getText('Recurring Schedule Week'), 'user_date_total' => TTi18n::getText('Employee Hours'), 'user_default' => TTi18n::getText('New Hire Defaults'), 'user_generic_data' => TTi18n::getText('Employee Generic Data'), 'user_preference' => TTi18n::getText('Employee Preference'), 'users' => TTi18n::getText('Employee'), 'user_identification' => TTi18n::getText('Employee Identification'), 'company_deduction' => TTi18n::getText('Tax / Deduction'), 'company_deduction_pay_stub_entry_account' => TTi18n::getText('Tax / Deduction PS Accounts'), 'user_deduction' => TTi18n::getText('Employee Deduction'), 'user_title' => TTi18n::getText('Employee Title'), 'user_wage' => TTi18n::getText('Employee Wage'), 'hierarchy_control' => TTi18n::getText('Hierarchy'), 'hierarchy_object_type' => TTi18n::getText('Hierarchy Object Type'), 'hierarchy_user' => TTi18n::getText('Hierarchy Subordinate'), 'hierarchy_level' => TTi18n::getText('Hierarchy Superior'), 'hierarchy' => TTi18n::getText('Hierarchy Tree'), 'user_report_data' => TTi18n::getText('Reports'), 'report_schedule' => TTi18n::getText('Report Schedule'), 'report_custom_column' => TTi18n::getText('Report Custom Column'), 'job' => TTi18n::getText('Job'), 'job_user_branch' => TTi18n::getText('Job Branch'), 'job_user_department' => TTi18n::getText('Job Department'), 'job_user_group' => TTi18n::getText('Job Group'), 'job_include_user' => TTi18n::getText('Job Include Employee'), 'job_exclude_user' => TTi18n::getText('Job Exclude Employee'), 'job_job_item_group' => TTi18n::getText('Job Task Group'), 'job_include_job_item' => TTi18n::getText('Job Include Task'), 'job_exclude_job_item' => TTi18n::getText('Job Exclude Task'), 'job_item' => TTi18n::getText('Job Task'), 'job_item_amendment' => TTi18n::getText('Job Task Amendment'), 'document' => TTi18n::getText('Document'), 'document_revision' => TTi18n::getText('Document Revision'), 'client' => TTi18n::getText('Client'), 'client_contact' => TTi18n::getText('Client Contact'), 'client_payment' => TTi18n::getText('Client Payment'), 'invoice' => TTi18n::getText('Invoice'), 'invoice_config' => TTi18n::getText('Invoice Settings'), 'invoice_transaction' => TTi18n::getText('Invoice Transaction'), 'product' => TTi18n::getText('Product'), 'product_price' => TTi18n::getText('Product Price Bracket'), 'product_tax_policy' => TTi18n::getText('Product Tax Policy'), 'tax_area_policy' => TTi18n::getText('Invoice Tax Area Policy'), 'tax_policy' => TTi18n::getText('Invoice Tax Policy'), 'transaction' => TTi18n::getText('Invoice Transaction'), 'user_contact' => TTi18n::getText('Employee Contact'), 'user_expense' => TTi18n::getText('Expense'), 'expense_policy' => TTi18n::getText('Expense Policy'), 'user_review' => TTi18n::getText('Review'), 'user_review_control' => TTi18n::getText('Review (Control)'), 'kpi' => TTi18n::getText('Key Performance Indicator'), 'qualification' => TTi18n::getText('Qualification'), 'user_skill' => TTi18n::getText('Skill'), 'user_education' => TTi18n::getText('Education'), 'user_membership' => TTi18n::getText('Memberships'), 'user_license' => TTi18n::getText('Licenses'), 'user_language' => TTi18n::getText('Languages'), 'job_vacancy' => TTi18n::getText('Job Vacancy'), 'job_applicant' => TTi18n::getText('Job Applicant'), 'job_application' => TTi18n::getText('Job Application'), 'job_applicant_location' => TTi18n::getText('Job Applicant Location'), 'job_applicant_employment' => TTi18n::getText('Job Applicant Employment'), 'job_applicant_reference' => TTi18n::getText('Job Applicant Reference'), 'job_applicant_skill' => TTi18n::getText('Job Applicant Skill'), 'job_applicant_education' => TTi18n::getText('Job Applicant Education'), 'job_applicant_license' => TTi18n::getText('Job Applicant Licenses'), 'job_applicant_language' => TTi18n::getText('Job Applicant Languages'), 'job_applicant_membership' => TTi18n::getText('Job Applicant Memberships'), 'ethnic_group' => TTi18n::getText('Ethnic Group'));
             break;
         case 'columns':
             $retval = array('-1010-first_name' => TTi18n::gettext('First Name'), '-1020-last_name' => TTi18n::gettext('Last Name'), '-1100-date' => TTi18n::gettext('Date'), '-1110-object' => TTi18n::gettext('Object'), '-1120-action' => TTi18n::gettext('Action'), '-1130-description' => TTi18n::gettext('Description'));
             break;
         case 'list_columns':
             $retval = Misc::arrayIntersectByKey($this->getOptions('default_display_columns'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('first_name', 'last_name', 'date', 'object', 'action', 'description');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array();
             break;
         case 'linked_columns':
             //Columns that are linked together, mainly for Mass Edit, if one changes, they all must.
             $retval = array();
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:31,代码来源:LogFactory.class.php


注:本文中的Misc::arrayIntersectByKey方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。