当前位置: 首页>>代码示例>>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;未经允许,请勿转载。