本文整理匯總了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();
}