예제 #1
0
 public function __construct()
 {
     parent::__construct();
     $smarty = cmsms()->GetSmarty();
     if (!$smarty) {
         return;
     }
     $this->RegisterModulePlugin();
     // this is here so the module can be used from the admin.
 }
예제 #2
0
 function __construct()
 {
     parent::__construct();
     $this->AddImageDir('images');
     $this->categories_table_name = cms_db_prefix() . 'module_cgcalendar_categories';
     $this->events_to_categories_table_name = cms_db_prefix() . 'module_cgcalendar_events_to_categories';
     $this->events_table_name = cms_db_prefix() . 'module_cgcalendar_events';
     $this->event_field_values_table_name = cms_db_prefix() . 'module_cgcalendar_event_field_values';
     $this->fields_table_name = cms_db_prefix() . 'module_cgcalendar_fields';
     $this->admin_tools_loaded = false;
 }
 public function __construct()
 {
     parent::__construct();
     $this->types = array('text' => 0, 'checkbox' => 1, 'email' => 2, 'textarea' => 3, 'dropdown' => 4, 'multiselect' => 5, 'image' => 6, 'radiobuttons' => 7, 'date' => 8);
     global $CMS_ADMIN_PAGE;
     if (!isset($CMS_ADMIN_PAGE)) {
         require_once dirname(__FILE__) . "/lib/class.feu_smarty.php";
         $smarty = cmsms()->GetSmarty();
         $obj = new feu_smarty($this);
         $smarty->assign_by_ref('feu_smarty', $obj);
     }
     $this->RegisterContentType('feu_protected_page', dirname(__FILE__) . '/lib/class.feu_protected_page.php', $this->Lang('feu_protected_page'));
 }
 function __construct()
 {
     parent::__construct();
     $this->_ops_obj = null;
 }
예제 #5
0
 public function __construct()
 {
     parent::__construct();
     $this->AddImageDir('images');
 }