function __construct() { parent::__construct('calendar/todo_list'); $CI =& get_instance(); $this->SetData('InlineAdder', TRUE); $this->SetData('InlineAdderTarget', site_url('calendar/actions/add/todo' . $CI->uri->uri_string())); }
function __construct() { parent::__construct('calendar/upcoming'); $this->SetData('MiniMode', FALSE); get_instance()->load->model('subcontrollers/calendar_subcontroller'); $this->Paths = new CalendarPaths(); $this->SetPath('calendar'); }
function __construct() { parent::__construct('calendar/weeks'); $CI =& get_instance(); $CI->main_frame->IncludeJs('javascript/prototype.js'); $CI->main_frame->IncludeJs('javascript/scriptaculous.js'); $CI->main_frame->IncludeJs('javascript/calendar.js'); $CI->main_frame->IncludeCss('stylesheets/calendar.css'); }
function __construct() { parent::__construct('calendar/agenda'); $this->SetData('MiniMode', FALSE); $CI =& get_instance(); $CI->main_frame->IncludeJs('javascript/prototype.js'); $CI->main_frame->IncludeJs('javascript/scriptaculous.js'); $CI->main_frame->IncludeJs('javascript/calendar.js'); $CI->main_frame->IncludeCss('stylesheets/calendar.css'); }
/** * You need to pass an instance of this class to the template. The constructor * expects an array of entries of the following type: * array( * $day_number => array(array ( * 'color' => the color in hex (css-like, without the #) * 'start' => the (start hour * 100) + (start minute) * 'end' => the (end hour * 100) + (end minute) * //'day' => day of week (0 = Sunday, ... , 6 = Saturday) * 'title' => the entry`s title * 'content' => whatever shall be the content of the entry as a string * ) ...) ... * ) * * @param mixed $entries an array of entries (see above) * @param string $controller the name of the controller. Used to create links. */ public function __construct($entries, $controller) { parent::__construct($entries); $this->context = $controller; }
function __construct($UseIcal = TRUE) { parent::__construct('calendar/' . ($UseIcal ? 'ical' : 'vcal')); }