本文整理汇总了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);
}
示例2:
function __construct($view_class = null)
{
if ($view_class === null) {
$view_class = "SiteView";
}
parent::__construct($view_class);
$this->BaseSiteData();
}
示例3: __construct
public function __construct()
{
if (!CSession::isAuth()) {
//$this->redirectNoAccess();
}
$this->_smartyEnabled = true;
$this->setPageTitle("Справочник видов работ");
parent::__construct();
}
示例4: __construct
public function __construct()
{
if (!CSession::isAuth()) {
$this->redirectNoAccess();
}
$this->_smartyEnabled = true;
$this->setPageTitle("Индивидуальные учебные планы");
parent::__construct();
}
示例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();
}
示例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();
}
示例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;
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}
示例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();
}