コード例 #1
0
ファイル: admin.php プロジェクト: phonglanpls/jz-proj-2012
 function __construct()
 {
     parent::__construct();
     $this->load->config('streams/streams');
     $this->lang->load('streams/pyrostreams');
     $this->load->helper('streams/streams');
     streams_constants();
     $this->load->model(array('streams/fields_m', 'streams/streams_m', 'streams/row_m'));
     $this->template->append_metadata('<style>table.form_table td {border-bottom: none;} table.form_table td.label_col {text-align: right;} small {display: block; color: #535353;} .actions {text-align: right;} .handle {cursor: move;} tr.inactive td {color: #A0A0A0!important;}</style>');
     // -------------------------------------
     // Load Validation
     // -------------------------------------
     // We are almost certainly going to
     // need these
     // -------------------------------------
     $this->load->library('form_validation');
     $this->load->library('streams/Streams_validation');
     // Get a master type object
     $this->load->library('streams/Type');
     // -------------------------------------
     // Gather Types
     // -------------------------------------
     // Get our types together for use in
     // many different places.
     // Referenced via $this->type->types
     // -------------------------------------
     $this->type->gather_types();
     // Make types availble to views
     $this->data->types = $this->type->types;
 }
コード例 #2
0
ファイル: plugin.php プロジェクト: phonglanpls/jz-proj-2012
 /**
  * PyroStreams Plugin Construct
  *
  * Just a bunch of loads and prep
  *
  * @access	public
  * @return	void
  */
 public function __construct()
 {
     $this->load->language('streams/pyrostreams');
     $this->load->config('streams/streams');
     $this->load->helper('streams/streams');
     streams_constants();
     $this->load->library('streams/Type');
     $this->load->model(array('streams/row_m', 'streams/streams_m', 'streams/fields_m'));
 }
コード例 #3
0
 function __construct()
 {
     parent::__construct();
     // If you are going to admin fields you gotta
     // pass the test!
     role_or_die('streams', 'admin_fields');
     $this->load->config('streams/streams');
     $this->lang->load('streams/pyrostreams');
     $this->load->helper('streams/streams');
     streams_constants();
     admin_resources();
     $this->data->types = $this->type->types;
 }
コード例 #4
0
 function __construct()
 {
     parent::__construct();
     $this->load->helper('streams/streams');
     streams_constants();
     // We need this for all of the variable setups in
     // the Type library __construct
     $this->load->library('Type');
     // Only AJAX gets through!
     if (!$this->input->is_ajax_request()) {
         die('Invalid request.');
     }
 }
コード例 #5
0
ファイル: ajax.php プロジェクト: phonglanpls/jz-proj-2012
 function __construct()
 {
     parent::__construct();
     // No matter what we don't show the profiler
     // in our AJAX calls.
     $this->output->enable_profiler(FALSE);
     $this->load->helper('streams/streams');
     streams_constants();
     // We need this for all of the variable setups in
     // the Type library __construct
     $this->load->library('Type');
     // Only AJAX gets through!
     if (!$this->input->is_ajax_request()) {
         die('Invalid request.');
     }
 }
コード例 #6
0
 function __construct()
 {
     parent::__construct();
     // If you are going to admin fields you gotta
     // pass the test!
     role_or_die('streams', 'admin_fields');
     $this->load->config('streams/streams');
     $this->lang->load('streams/pyrostreams');
     $this->load->helper('streams/streams');
     streams_constants();
     admin_resources();
     $this->data->types = $this->type->types;
     // Gather stream data.
     // Each one of our functions requires we are within a stream.
     $this->data->stream_id = $this->uri->segment(5);
     if (!($this->data->stream = $this->streams_m->get_stream($this->data->stream_id))) {
         show_error(lang('streams.invalid_stream_id'));
     }
 }