本文整理汇总了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'];
}
示例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();
}
示例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');
}
示例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]);
}
示例5: __construct
public function __construct()
{
parent::__construct();
$this->AbaAtiva = 29;
$this->AbaAtivaMae = 0;
$this->debug();
}
示例6: __construct
public function __construct()
{
parent::__construct();
$this->objPHPExcel = new PHPExcel();
$this->workSheet = $this->objPHPExcel->getActiveSheet();
$this->debug();
}
示例7:
function __construct($app, $db, array $data = NULL)
{
parent::__construct($app, $db, $data);
$this->showErrorPage = FALSE;
$this->useTransactions = FALSE;
$this->actions = ['search'];
}
示例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);
}
}
示例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();
}
示例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;
}
}
}
}
示例11: __construct
public function __construct($di)
{
parent::__construct($di);
}
示例12: __construct
public function __construct()
{
parent::__construct(TRUE);
$this->setAbaAtiva(8)->setAbaAtivaMae(1)->loadPlugin('filtros');
}
示例13: __construct
public function __construct($di)
{
parent::__construct($di);
$this->setTitle('Каталог оптики');
}
示例14: __construct
public function __construct()
{
parent::__construct(TRUE);
$this->automSelectMenu();
}
示例15: __construct
public function __construct($di)
{
parent::__construct($di);
$this->goSer = $this->getGoServer();
}