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


PHP Misc::trimSortPrefix方法代码示例

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


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

示例1: _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

示例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 'preset':
             $pf = TTnew('PermissionFactory');
             $retval = $pf->getOptions('preset');
             break;
         case 'level':
             $retval = array(1 => 1, 2 => 2, 3 => 3, 4 => 4, 5 => 5, 6 => 6, 7 => 7, 8 => 8, 9 => 9, 10 => 10, 11 => 11, 12 => 12, 13 => 13, 14 => 14, 15 => 15, 16 => 16, 17 => 17, 18 => 18, 19 => 19, 20 => 20, 21 => 21, 22 => 22, 23 => 23, 24 => 24, 25 => 25);
             break;
         case 'columns':
             $retval = array('-1000-name' => TTi18n::gettext('Name'), '-1010-description' => TTi18n::gettext('Description'), '-1020-level' => TTi18n::gettext('Level'), '-1030-total_users' => TTi18n::gettext('Employees'), '-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', 'description', 'level'), Misc::trimSortPrefix($this->getOptions('columns')));
             break;
         case 'default_display_columns':
             //Columns that are displayed by default.
             $retval = array('name', 'description', 'level', 'total_users', 'updated_by', 'updated_date');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('name');
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:28,代码来源:PermissionControlFactory.class.php

示例7: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1010-status' => TTi18n::gettext('Status'), '-1020-type' => TTi18n::gettext('Type'), '-1030-name' => TTi18n::gettext('Tax / Deduction'), '-1040-calculation' => TTi18n::gettext('Calculation'), '-1110-first_name' => TTi18n::gettext('First Name'), '-1120-last_name' => TTi18n::gettext('Last 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('status', 'type', 'name', 'calculation');
             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,代码来源:UserDeductionFactory.class.php

示例8: _getFactoryOptions

 function _getFactoryOptions($name, $parent = NULL)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1100-type' => TTi18n::gettext('Type'), '-1110-status' => TTi18n::gettext('Status'), '-1210-time_stamp' => TTi18n::gettext('Date/Time'), '-1220-date' => TTi18n::gettext('Date'), '-1230-time' => TTi18n::gettext('Time'), '-1239-in_type' => TTi18n::gettext('In Type'), '-1240-in_time_stamp' => TTi18n::gettext('In Date/Time'), '-1250-in_punch_date' => TTi18n::gettext('In Date'), '-1260-in_punch_time' => TTi18n::gettext('In Time'), '-1269-out_type' => TTi18n::gettext('Out Type'), '-1270-out_time_stamp' => TTi18n::gettext('Out Date/Time'), '-1280-out_punch_date' => TTi18n::gettext('Out Date'), '-1290-out_punch_time' => TTi18n::gettext('Out Time'), '-1310-branch' => TTi18n::gettext('Branch'), '-1320-department' => TTi18n::gettext('Department'), '-1410-station_id' => TTi18n::gettext('Station ID'), '-1420-longitude' => TTi18n::gettext('Longitude'), '-1430-latitude' => TTi18n::gettext('Latitude'), '-1500-note' => TTi18n::gettext('Note'));
             //Since getOptions() can be called without first setting a company, we don't always know the product edition for the currently
             //logged in employee.
             if (is_object($this->getCompanyObject()) and $this->getCompanyObject()->getProductEdition() >= TT_PRODUCT_CORPORATE or !is_object($this->getCompanyObject()) and getTTProductEdition() >= TT_PRODUCT_CORPORATE) {
                 $retval += array('-1330-job' => TTi18n::gettext('Job'), '-1340-job_item' => TTi18n::gettext('Task'), '-1350-quantity' => TTi18n::gettext('Quantity'), '-1360-bad_quantity' => TTi18n::gettext('Bad Quantity'));
             }
             $retval = Misc::addSortPrefix(Misc::prependArray($this->getUserIdentificationColumns(), Misc::trimSortPrefix($retval)));
             ksort($retval);
             break;
         case 'column_aliases':
             //Used for converting column names after they have been parsed.
             $retval = array('type' => 'type_id', 'status' => 'status_id', 'branch' => 'branch_id', 'department' => 'department_id', 'job' => 'job_id', 'job_item' => 'job_item_id');
             break;
         case 'import_options':
             $retval = array('-1010-fuzzy_match' => TTi18n::getText('Enable smart matching.'), '-1020-disable_rounding' => TTi18n::getText('Disable rounding.'));
             break;
         case 'parse_hint':
             $upf = TTnew('UserPreferenceFactory');
             $retval = array('branch' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'department' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'job' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'job_item' => array('-1010-name' => TTi18n::gettext('Name'), '-1010-manual_id' => TTi18n::gettext('Code')), 'time_stamp' => $upf->getOptions('date_time_format'), 'in_time_stamp' => $upf->getOptions('date_time_format'), 'out_time_stamp' => $upf->getOptions('date_time_format'), 'date' => $upf->getOptions('date_format'), 'in_punch_date' => $upf->getOptions('date_format'), 'out_punch_date' => $upf->getOptions('date_format'), 'time' => $upf->getOptions('time_format'), 'in_punch_time' => $upf->getOptions('time_format'), 'out_punch_time' => $upf->getOptions('time_format'));
             break;
     }
     return $retval;
 }
开发者ID:alachaum,项目名称:timetrex,代码行数:28,代码来源:ImportPunch.class.php

示例9: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'columns':
             $retval = array('-1020-name' => TTi18n::gettext('Name'), '-1030-meal_policy' => TTi18n::gettext('Meal Policy'), '-1040-absence_policy' => TTi18n::gettext('Absence Policy'), '-1050-over_time_policy' => TTi18n::gettext('Overtime Policy'), '-1060-start_stop_window' => TTi18n::gettext('Window'), '-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', 'meal_policy', 'start_stop_window', '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,代码行数:25,代码来源:SchedulePolicyFactory.class.php

示例10: _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

示例11: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'length_of_service_unit':
             $retval = array(10 => TTi18n::gettext('Day(s)'), 20 => TTi18n::gettext('Week(s)'), 30 => TTi18n::gettext('Month(s)'), 40 => TTi18n::gettext('Year(s)'), 50 => TTi18n::gettext('Hour(s)'));
             break;
         case 'columns':
             $retval = array('-1010-length_of_service' => TTi18n::gettext('Length Of Service'), '-1020-length_of_service_unit' => TTi18n::gettext('Units'), '-1030-accrual_rate' => TTi18n::gettext('Accrual Rate'), '-1050-maximum_time' => TTi18n::gettext('Maximum Time'), '-1050-rollover_time' => TTi18n::gettext('Rollover Time'), '-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('length_of_service', 'length_of_service_unit', 'accrual_rate', 'maximum_time', 'rollover_time');
             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,代码行数:28,代码来源:AccrualPolicyMilestoneFactory.class.php

示例12: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'status':
             $retval = array(10 => TTi18n::gettext('OPEN'), 12 => TTi18n::gettext('Locked - Pending Approval'), 20 => TTi18n::gettext('CLOSED'), 30 => TTi18n::gettext('Post Adjustment'));
             break;
         case 'columns':
             $retval = array('-1010-type' => TTi18n::gettext('Type'), '-1020-status' => TTi18n::gettext('Status'), '-1030-pay_period_schedule' => TTi18n::gettext('Pay Period Schedule'), '-1040-start_date' => TTi18n::gettext('Start Date'), '-1050-end_date' => TTi18n::gettext('End Date'), '-1060-transaction_date' => TTi18n::gettext('Transaction Date'), '-1500-total_punches' => TTi18n::gettext('Punches'), '-1505-pending_requests' => TTi18n::gettext('Pending Requests'), '-1510-exceptions_critical' => TTi18n::gettext('Critical'), '-1510-exceptions_high' => TTi18n::gettext('High'), '-1512-exceptions_medium' => TTi18n::gettext('Medium'), '-1514-exceptions_low' => TTi18n::gettext('Low'), '-1520-verified_timesheets' => TTi18n::gettext('Verified'), '-1522-pending_timesheets' => TTi18n::gettext('Pending'), '-1524-total_timesheets' => TTi18n::gettext('Total'), '-1530-ps_amendments' => TTi18n::gettext('PS Amendments'), '-1540-pay_stubs' => TTi18n::gettext('Pay Stubs'), '-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('pay_period_schedule', 'type', 'status', 'start_date', 'end_date', 'transaction_date');
             break;
         case 'unique_columns':
             //Columns that are unique, and disabled for mass editing.
             $retval = array('start_date', 'end_date', 'transaction_date');
             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,代码来源:PayPeriodFactory.class.php

示例13: _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

示例14: _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

示例15: _getFactoryOptions

 function _getFactoryOptions($name)
 {
     $retval = NULL;
     switch ($name) {
         case 'type':
             $retval = array(2 => TTi18n::gettext('Company'), 4 => TTi18n::gettext('Branch'), 5 => TTi18n::gettext('Department'), 10 => TTi18n::gettext('Employee'), 12 => TTi18n::gettext('Employee Title'), 15 => TTi18n::gettext('Punch'), 20 => TTi18n::gettext('Job'), 30 => TTi18n::gettext('Task'), 50 => TTi18n::gettext('Client'), 55 => TTi18n::gettext('Client Contact'), 60 => TTi18n::gettext('Product'), 70 => TTi18n::gettext('Invoice'), 80 => TTi18n::gettext('Document'));
             break;
         case 'columns':
             $retval = array('-1010-type' => TTi18n::gettext('Type'), '-1020-other_id1' => TTi18n::gettext('Other ID1'), '-1020-other_id2' => TTi18n::gettext('Other ID2'), '-1020-other_id3' => TTi18n::gettext('Other ID3'), '-1020-other_id4' => TTi18n::gettext('Other ID4'), '-1020-other_id5' => TTi18n::gettext('Other ID5'), '-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_id', 'type', 'other_id1', 'other_id2', 'other_id3', 'other_id4', 'other_id5');
             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,代码行数:28,代码来源:OtherFieldFactory.class.php


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