Example #1
0
 public function __construct()
 {
     parent::__construct();
     global $tmpl;
     $tmpl->assign('view', $this);
     $tmpl->registerPlugin("function", "form_buttons", array(&$this, "smartyFormButtons"), false);
     $tmpl->registerPlugin("block", "select_list", array(&$this, "smartySelectList"), false);
     return;
 }
Example #2
0
 public function __construct()
 {
     global $config, $tmpl;
     if ($config->isHttpUploadEnabled()) {
         $tmpl->assign('http_upload_is_enabled', true);
     }
     if ($config->isMailImportEnabled()) {
         $tmpl->assign('mail_import_is_enabled', true);
     }
     if ($config->isUserTriggersImportEnabled()) {
         $tmpl->assign('user_triggers_import_enabled', true);
     }
     parent::__construct();
     return;
 }