Skip to content

Instantly share code, notes, and snippets.

@shofetim
Created June 15, 2012 22:47
Show Gist options
  • Select an option

  • Save shofetim/2939085 to your computer and use it in GitHub Desktop.

Select an option

Save shofetim/2939085 to your computer and use it in GitHub Desktop.
Rotational Pools data
'RotationalPool' => array(
'id' => '',
'name' => '',
'description' => '',
'abbrev' => '',
'duration' => array(
(int) 0 => array(
'ShiftBasic' => array(
'id' => '3',
'name' => 'Test',
'description' => 'lorem ipsum dollar set amet',
'abbrev' => 'TS',
'type' => 'rotational',
'color' => 'ff0000',
'employee_type_id' => '0',
'project_id' => '0',
'org_id' => '0',
'certification_id' => '0',
'cert_operation' => '',
'cert_level' => '1',
'skill_id' => '0',
'skill_operation' => '',
'skill_level' => '1',
'break_policy_id' => '0',
'meal_policy_id' => '0',
'rounding_policy_id' => '0',
'seniority_policy_id' => '0',
'shift_policy_id' => '0',
'activity' => '1',
'employee_count' => '1'
),
'Skill' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Certification' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Org' => array(
'id' => null,
'name' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'EmployeeType' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Project' => array(
'id' => null,
'name' => null,
'desc' => null,
'abbrev' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'ShiftSchedule' => array(
(int) 0 => array(
'id' => '34',
'shift_basic_id' => '3',
'start' => '1338901200',
'end' => '1338904800',
'duration' => '3600',
'week' => '0',
'dows' => '0',
'day_from' => '1',
'day_to' => '1',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 1 => array(
'id' => '35',
'shift_basic_id' => '3',
'start' => '1338879600',
'end' => '1338915600',
'duration' => '36000',
'week' => '0',
'dows' => '0',
'day_from' => '2',
'day_to' => '2',
'day_status' => '0',
'employee_count' => '1',
'active' => true
)
)
),
(int) 1 => array(
'ShiftBasic' => array(
'id' => '11',
'name' => 'Test Rotational Pattern 1',
'description' => 'MAc1',
'abbrev' => '11',
'type' => 'rotational',
'color' => 'ff0000',
'employee_type_id' => '0',
'project_id' => '0',
'org_id' => '0',
'certification_id' => '0',
'cert_operation' => '',
'cert_level' => '1',
'skill_id' => '0',
'skill_operation' => '',
'skill_level' => '1',
'break_policy_id' => '0',
'meal_policy_id' => '0',
'rounding_policy_id' => '0',
'seniority_policy_id' => '0',
'shift_policy_id' => '0',
'activity' => '1',
'employee_count' => '1'
),
'Skill' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Certification' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Org' => array(
'id' => null,
'name' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'EmployeeType' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Project' => array(
'id' => null,
'name' => null,
'desc' => null,
'abbrev' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'ShiftSchedule' => array(
(int) 0 => array(
'id' => '70',
'shift_basic_id' => '11',
'start' => '0',
'end' => '0',
'duration' => '0',
'week' => '0',
'dows' => '0',
'day_from' => '1',
'day_to' => '2',
'day_status' => '1',
'employee_count' => '1',
'active' => true
),
(int) 1 => array(
'id' => '71',
'shift_basic_id' => '11',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '0',
'week' => '0',
'dows' => '0',
'day_from' => '3',
'day_to' => '4',
'day_status' => '0',
'employee_count' => '1',
'active' => true
)
)
),
(int) 2 => array(
'ShiftBasic' => array(
'id' => '12',
'name' => 'Test of long',
'description' => 'asdfsadf asdfsadf adfasf',
'abbrev' => 'AAAA',
'type' => 'rotational',
'color' => 'ff0000',
'employee_type_id' => '0',
'project_id' => '0',
'org_id' => '0',
'certification_id' => '0',
'cert_operation' => '',
'cert_level' => '1',
'skill_id' => '0',
'skill_operation' => '',
'skill_level' => '1',
'break_policy_id' => '0',
'meal_policy_id' => '0',
'rounding_policy_id' => '0',
'seniority_policy_id' => '0',
'shift_policy_id' => '0',
'activity' => '1',
'employee_count' => '10'
),
'Skill' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Certification' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Org' => array(
'id' => null,
'name' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'EmployeeType' => array(
'id' => null,
'name' => null,
'desc' => null,
'active' => null
),
'Project' => array(
'id' => null,
'name' => null,
'desc' => null,
'abbrev' => null,
'code' => null,
'type' => null,
'active' => null,
'parent_id' => null,
'lft' => null,
'rght' => null,
'locked' => null
),
'ShiftSchedule' => array(
(int) 0 => array(
'id' => '72',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '1',
'day_to' => '7',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 1 => array(
'id' => '73',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '8',
'day_to' => '15',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 2 => array(
'id' => '74',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '16',
'day_to' => '23',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 3 => array(
'id' => '75',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '30',
'day_to' => '37',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 4 => array(
'id' => '76',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '37',
'day_to' => '40',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 5 => array(
'id' => '77',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '40',
'day_to' => '47',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 6 => array(
'id' => '78',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '47',
'day_to' => '54',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 7 => array(
'id' => '79',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '54',
'day_to' => '60',
'day_status' => '0',
'employee_count' => '1',
'active' => true
),
(int) 8 => array(
'id' => '80',
'shift_basic_id' => '12',
'start' => '1339657200',
'end' => '1339704000',
'duration' => '46800',
'week' => '0',
'dows' => '0',
'day_from' => '60',
'day_to' => '61',
'day_status' => '0',
'employee_count' => '1',
'active' => true
)
)
)
)
)
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment