当前位置: 首页>>代码示例>>PHP>>正文


PHP ControllerBase::__construct方法代码示例

本文整理汇总了PHP中ControllerBase::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP ControllerBase::__construct方法的具体用法?PHP ControllerBase::__construct怎么用?PHP ControllerBase::__construct使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在ControllerBase的用法示例。


在下文中一共展示了ControllerBase::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: TagsParser

 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->showErrorPage = FALSE;
     $this->parser = new TagsParser();
     $this->actions = ['fetch', 'add', 'edit', 'delete', 'preview', 'html', 'text', 'rate', 'help'];
 }
开发者ID:shevtsov-s,项目名称:planetsbook,代码行数:7,代码来源:CommentsController.php

示例2: __construct

 /**
  * 
  */
 public function __construct()
 {
     parent::__construct('responsive');
     //Definindo se deve ou não mostrar a barra superior e de menu
     $this->setShadowBox(true);
     $this->debug();
 }
开发者ID:andersongimino,项目名称:area51,代码行数:10,代码来源:estudoOnlineController.php

示例3: __construct

 public function __construct($wpdb)
 {
     parent::__construct($wpdb);
     $db = new \Tabulate\DB\Database($this->wpdb);
     $this->table_names = $db->getTableNames();
     $this->template = new \Tabulate\Template('grants.html');
 }
开发者ID:tabulate,项目名称:tabulate3,代码行数:7,代码来源:GrantsController.php

示例4:

 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->showErrorPage = FALSE;
     $this->actions = ['fetch', 'upload', 'delete', 'descript'];
     $this->validateRights([USER_REGISTERED]);
 }
开发者ID:shevtsov-s,项目名称:planetsbook,代码行数:7,代码来源:StorageController.php

示例5: __construct

 public function __construct()
 {
     parent::__construct();
     $this->AbaAtiva = 29;
     $this->AbaAtivaMae = 0;
     $this->debug();
 }
开发者ID:andersongimino,项目名称:area51,代码行数:7,代码来源:pareceres.php

示例6: __construct

 public function __construct()
 {
     parent::__construct();
     $this->objPHPExcel = new PHPExcel();
     $this->workSheet = $this->objPHPExcel->getActiveSheet();
     $this->debug();
 }
开发者ID:andersongimino,项目名称:area51,代码行数:7,代码来源:planilhas.php

示例7:

 function __construct($app, $db, array $data = NULL)
 {
     parent::__construct($app, $db, $data);
     $this->showErrorPage = FALSE;
     $this->useTransactions = FALSE;
     $this->actions = ['search'];
 }
开发者ID:shevtsov-s,项目名称:planetsbook,代码行数:7,代码来源:SearchController.php

示例8: __construct

 public function __construct()
 {
     parent::__construct('responsive');
     //Definindo se deve ou não mostrar a barra superior e de menu
     if (!filter_input(INPUT_GET, 'menu', FILTER_VALIDATE_BOOLEAN)) {
         $this->setShadowBox(true);
     }
 }
开发者ID:andersongimino,项目名称:area51,代码行数:8,代码来源:conteudosextras.php

示例9: __construct

 public function __construct()
 {
     parent::__construct();
     //Variavel que informa se o usuário logado pode ou não editar
     $this->editavel = Permissoes::checar(Permissoes::EDITAR);
     //adiciona o plugin de auto seleção do menu lateral
     $this->automSelectMenu();
 }
开发者ID:andersongimino,项目名称:area51,代码行数:8,代码来源:registros.php

示例10: __construct

 public function __construct($wpdb)
 {
     parent::__construct($wpdb);
     $db = new \WordPress\Tabulate\DB\Database($this->wpdb);
     $this->selected_tables = array();
     foreach ($db->get_tables() as $table) {
         $this->tables[] = $table;
         // If any tables are requested, only show them
         if (isset($_GET['tables']) && count($_GET['tables']) > 0) {
             if (isset($_GET['tables'][$table->get_name()])) {
                 $this->selected_tables[$table->get_name()] = $table;
             }
         } else {
             // Otherwise, default to all linked tables
             $referenced = count($table->get_referencing_tables()) > 0;
             $referencing = count($table->get_referenced_tables()) > 0;
             if ($referenced || $referencing) {
                 $this->selected_tables[$table->get_name()] = $table;
             }
         }
     }
 }
开发者ID:gitter-badger,项目名称:tabulate-1,代码行数:22,代码来源:ErdController.php

示例11: __construct

 public function __construct($di)
 {
     parent::__construct($di);
 }
开发者ID:Comrada,项目名称:autopoisk.pro,代码行数:4,代码来源:ErrorController.php

示例12: __construct

 public function __construct()
 {
     parent::__construct(TRUE);
     $this->setAbaAtiva(8)->setAbaAtivaMae(1)->loadPlugin('filtros');
 }
开发者ID:andersongimino,项目名称:area51,代码行数:5,代码来源:pesquisas.php

示例13: __construct

 public function __construct($di)
 {
     parent::__construct($di);
     $this->setTitle('Каталог оптики');
 }
开发者ID:Comrada,项目名称:autopoisk.pro,代码行数:5,代码来源:OpticsController.php

示例14: __construct

 public function __construct()
 {
     parent::__construct(TRUE);
     $this->automSelectMenu();
 }
开发者ID:andersongimino,项目名称:area51,代码行数:5,代码来源:ouvidoria.php

示例15: __construct

 public function __construct($di)
 {
     parent::__construct($di);
     $this->goSer = $this->getGoServer();
 }
开发者ID:nicklos17,项目名称:eapi,代码行数:5,代码来源:PublishController.php


注:本文中的ControllerBase::__construct方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。