PluginProbe
ShiftController Employee Shift Scheduling / 2.2.4
ShiftController Employee Shift Scheduling v2.2.4
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
shiftcontroller / application / config / relations.php

relations.php in ShiftController Employee Shift Scheduling 2.2.4, at application/config/relations.php

28 lines 777 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
2 $config = array();
3
4 /* this file defines model relationships runtime if needed */
5 $CI =& ci_get_instance();
6 if( $CI->hc_modules->exists('notes') )
7 {
8 $config['note']['has_one']['timeoff'] = array(
9 'class' => 'timeoff_model',
10 'other_field' => 'note',
11 );
12 $config['note']['has_one']['shift'] = array(
13 'class' => 'shift_model',
14 'other_field' => 'note',
15 );
16 $config['timeoff']['has_many']['note'] = array(
17 'class' => 'note_model',
18 'other_field' => 'timeoff',
19 );
20 $config['shift']['has_many']['note'] = array(
21 'class' => 'note_model',
22 'other_field' => 'shift',
23 );
24 $config['user']['has_many']['note'] = array(
25 'class' => 'note_model',
26 'other_field' => 'author',
27 );
28 }