當前位置: 首頁>>代碼示例>>PHP>>正文


PHP CBaseController::__construct方法代碼示例

本文整理匯總了PHP中CBaseController::__construct方法的典型用法代碼示例。如果您正苦於以下問題:PHP CBaseController::__construct方法的具體用法?PHP CBaseController::__construct怎麽用?PHP CBaseController::__construct使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在CBaseController的用法示例。


在下文中一共展示了CBaseController::__construct方法的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1:

 function __construct($view_class = null)
 {
     if ($view_class === null) {
         $view_class = "SiteCommentView";
     }
     parent::__construct($view_class);
 }
開發者ID:amanai,項目名稱:next24,代碼行數:7,代碼來源:BaseCommentController.php

示例2:

 function __construct($view_class = null)
 {
     if ($view_class === null) {
         $view_class = "SiteView";
     }
     parent::__construct($view_class);
     $this->BaseSiteData();
 }
開發者ID:amanai,項目名稱:next24,代碼行數:8,代碼來源:SiteController.php

示例3: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         //$this->redirectNoAccess();
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Справочник видов работ");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:9,代碼來源:CIndPlanWorkTypesController.class.php

示例4: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $this->redirectNoAccess();
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Индивидуальные учебные планы");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:9,代碼來源:CCorriculumPracticesController.class.php

示例5: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         if (!in_array(CRequest::getString("action"), $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Управление таблицами доступа");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:11,代碼來源:CACLTableController.class.php

示例6: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         if (!in_array(CRequest::getString("action"), $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Учебные группы студентов");
     $this->_useDojo = true;
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:12,代碼來源:CStudentGroupsController.class.php

示例7: __construct

 public function __construct()
 {
     parent::__construct();
     // Initializing of page
     $this->load->model('Page_model');
     $this->data = $this->Page_model->GetPageContent($this->cPageName, 'general', false);
     // All categories for top header and right column
     $this->data->aCategories = $this->Page_model->GetAllCategories();
     $this->cTitle = $this->data->pages_title;
     $this->cDescription = $this->data->pages_description;
     $this->cKeywords = $this->data->pages_keywords;
 }
開發者ID:Lynxiel,項目名稱:elektrika-full,代碼行數:12,代碼來源:cpagecontroller.php

示例8: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $this->redirectNoAccess();
     }
     if (CSession::getCurrentUser()->getLevelForCurrentTask() == ACCESS_LEVEL_NO_ACCESS) {
         $this->redirectNoAccess();
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Учебная нагрузка");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:12,代碼來源:CIndPlanLoadController.class.php

示例9: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $action = CRequest::getString("action");
         if ($action == "") {
             $action = "index";
         }
         if (!in_array($action, $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Содержание разделов дисциплины");
     parent::__construct();
 }
開發者ID:Trozeman,項目名稱:ASUPortalPHP,代碼行數:15,代碼來源:CWorkPlanContentSectionsController.class.php

示例10: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $action = CRequest::getString("action");
         if ($action == "") {
             $action = "index";
         }
         if (!in_array(CRequest::getString("action"), $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Предзащита ВКР - студенты");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:15,代碼來源:CDiplomPreviewController.class.php

示例11: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $action = CRequest::getString("action");
         if ($action == "") {
             $action = "index";
         }
         if (!in_array($action, $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     }
     $this->_useDojo = true;
     $this->_smartyEnabled = true;
     $this->setPageTitle("Комиссии ГАК");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:16,代碼來源:CSABComissionController.class.php

示例12: __construct

 public function __construct()
 {
     // если не определен параметр type=json, то ведем себя
     // как обычный контроллер
     if (CRequest::getString("type") == "") {
         parent::__construct();
         return;
     }
     if (CRequest::getString("type") != "json") {
         parent::__construct();
         return;
     }
     if (CRequest::getString("type") == "json") {
         $this->processRequest();
     }
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:16,代碼來源:CJsonController.class.php

示例13: __construct

 public function __construct()
 {
     if (!CSession::isAuth()) {
         $action = CRequest::getString("action");
         if ($action == "") {
             $action = "index";
         }
         if (!in_array($action, $this->allowedAnonymous)) {
             $this->redirectNoAccess();
         }
     } else {
         if (CSession::getCurrentUser()->getLevelForCurrentTask() == ACCESS_LEVEL_NO_ACCESS) {
             $this->redirectNoAccess();
         }
     }
     $this->_smartyEnabled = true;
     $this->setPageTitle("Новости портала кафедры АСУ");
     parent::__construct();
 }
開發者ID:Rustam44,項目名稱:ASUPortalPHP,代碼行數:19,代碼來源:CNewsController.class.php


注:本文中的CBaseController::__construct方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。