Exemple #1
0
 public function __construct()
 {
     parent::__construct();
     // helpers
     $this->load->helper('date_convert_helper');
     $this->load->helper('date_helper');
     // now
     $this->now = get_now();
     // various arrays of dates and times
     $times = $this->config->item('times');
     if (is_array($times)) {
         $this->times = $times;
     } else {
         $this->times = array(array('time' => '08:00'), array('time' => '08:30'), array('time' => '09:00'), array('time' => '09:30'), array('time' => '10:00'), array('time' => '10:30'), array('time' => '11:00'), array('time' => '11:30'), array('time' => '12:00'), array('time' => '12:30'), array('time' => '13:00'), array('time' => '13:30'), array('time' => '14:00'), array('time' => '14:30'), array('time' => '15:00'), array('time' => '15:30'), array('time' => '16:00'), array('time' => '16:30'), array('time' => '17:00'), array('time' => '17:30'), array('time' => '18:00'), array('time' => '18:30'), array('time' => '19:00'), array('time' => '19:30'), array('time' => '20:00'), array('time' => '20:30'), array('time' => '21:00'), array('time' => '21:30'), array('time' => '22:00'), array('time' => '22:30'), array('time' => '23:00'), array('time' => '23:30'), array('time' => '00:00'), array('time' => '00:30'), array('time' => '01:00'), array('time' => '01:30'), array('time' => '02:00'), array('time' => '02:30'), array('time' => '03:00'), array('time' => '03:30'), array('time' => '04:00'), array('time' => '04:30'), array('time' => '05:00'), array('time' => '05:30'), array('time' => '06:00'), array('time' => '06:30'), array('time' => '07:00'), array('time' => '07:30'));
     }
     // durations
     $this->durations = array('h' => 'hours', 'd' => 'days');
     // the day numbers
     $this->days = array(1, 2, 3, 4, 5, 6, 7);
     // the day names in order
     $this->day_names = array('mon', 'tue', 'wed', 'thu', 'fri', 'sat', 'sun');
     // drop down values for monthly repeats
     $this->monthlies = array('on this day', 'at this position');
     // month numbers convert to names on numeric or string
     $this->month_nums = array(1 => 'jan', 2 => 'feb', 3 => 'mar', 4 => 'apr', 5 => 'may', 6 => 'jun', 7 => 'jul', 8 => 'aug', 9 => 'sep', 10 => 'oct', 11 => 'nov', 12 => 'dec', '01' => 'jan', '02' => 'feb', '03' => 'mar', '04' => 'apr', '05' => 'may', '06' => 'jun', '07' => 'jul', '08' => 'aug', '09' => 'sep', '10' => 'oct', '11' => 'nov', '12' => 'dec', 'f01' => 'january', 'f02' => 'february', 'f03' => 'march', 'f04' => 'april', 'f05' => 'may', 'f06' => 'june', 'f07' => 'july', 'f08' => 'august', 'f09' => 'september', 'f10' => 'october', 'f11' => 'november', 'f12' => 'december');
     // month names convert to strings
     $this->month_names = array('jan' => '01', 'feb' => '02', 'mar' => '03', 'apr' => '04', 'may' => '05', 'jun' => '06', 'jul' => '07', 'aug' => '08', 'sep' => '09', 'oct' => '10', 'nov' => '11', 'dec' => '12');
     // date config
     $this->date_formats = $this->config->item('date_format');
     // calendar
     $this->calendar = array();
     $this->event_nodes = array();
 }
Exemple #2
0
 public function __construct()
 {
     parent::__construct();
     // helpers
     $this->load->helper('image_helper');
     // models
     $this->load->model('variation_model');
 }
Exemple #3
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('cart');
     $this->load->model('events_model');
     $this->load->model('node_model');
     $this->load->model('postage_model');
     $this->load->model('voucher_model');
 }
 public function __construct()
 {
     parent::__construct();
     // helpers
     $this->load->helper('form');
     $this->load->helper('html');
     $this->load->helper('image');
     $this->load->helper('string');
     $this->load->model('share_model');
 }
Exemple #5
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('node_model');
     $this->load->model('node_admin_model');
     $this->load->model('stream_model');
     $this->load->helper('form');
     $this->load->helper('security');
     $this->load->helper('string');
     $this->load->helper('url');
     $this->load->library('input');
 }
Exemple #6
0
 public function __construct()
 {
     parent::__construct();
     /* BENCHMARK */
     $this->benchmark->mark('Node_admin_model_start');
     // models
     $this->load->model('image_model');
     $this->load->model('node_model');
     $this->load->model('rss_model');
     $this->load->model('stream_model');
     // libraries
     // helpers
     $this->load->helper('data');
     $this->load->helper('form');
     $this->load->helper('string');
     // properties
     /* BENCHMARK */
     $this->benchmark->mark('Node_admin_model_end');
 }
Exemple #7
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('cart');
     $this->load->model('basket_model');
 }
 public function __construct()
 {
     parent::__construct();
 }
Exemple #9
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('node_model');
 }
Exemple #10
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper('date_convert_helper');
 }
Exemple #11
0
 public function __construct()
 {
     parent::__construct();
     $this->load->config('action');
     $this->actions = $this->config->item('stream_actions');
 }
Exemple #12
0
 public function __construct()
 {
     parent::__construct();
     $this->load->library('cart');
     $this->load->helper('data_helper');
 }