本文整理汇总了PHP中bootstrap::__construct方法的典型用法代码示例。如果您正苦于以下问题:PHP bootstrap::__construct方法的具体用法?PHP bootstrap::__construct怎么用?PHP bootstrap::__construct使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类bootstrap
的用法示例。
在下文中一共展示了bootstrap::__construct方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: __construct
public function __construct($re)
{
if (!is_file(Wind::getRealPath('DATA:install.lock', true))) {
Wind::getComponent('response')->sendRedirect("install.php");
}
parent::__construct($re);
}
示例2: utilisateursController
function utilisateursController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Controle d'acces � la rubrique
$this->users->checkAccess('configuration');
// Activation du menu
$this->menu_admin = 'configuration';
}
示例3: statsController
function statsController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Controle d'acces ŕ la rubrique
$this->users->checkAccess('stats');
// Activation du menu
$this->menu_admin = 'stats';
}
示例4: thickboxController
function thickboxController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// On masque les Head, header et footer originaux plus le debug
$this->autoFireHeader = false;
$this->autoFireHead = false;
$this->autoFireFooter = false;
$this->autoFireDebug = false;
}
示例5: settingsController
function settingsController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
if (isset($_SESSION['user']['role'])) {
if ($_SESSION['user']['role'] == 'tresorier' || $_SESSION['user']['role'] == '') {
header("Location: " . $this->url . '/home');
}
}
}
示例6: __construct
/**
* 构造函数
*/
public function __construct($re)
{
if (!is_file(Wind::getRealPath('DATA:install.lock', true))) {
Wind::getComponent('response')->sendRedirect("install.php");
}
parent::__construct($re);
//云应用监听sql执行
WindFactory::_getInstance()->loadClassDefinitions(array('sqlStatement' => array('proxy' => 'WIND:filter.proxy.WindEnhancedClassProxy', 'listeners' => array('LIB:compile.acloud.PwAcloudDbListener'))));
$this->charset = Wind::getComponent('response')->getCharset();
}
示例7: protectedController
function protectedController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->autoFireHeader = false;
$this->autoFireHead = false;
$this->autoFireView = false;
$this->autoFireFooter = false;
$this->autoFireDebug = false;
$this->catchAll = true;
}
示例8: ajaxController
function ajaxController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
// On place le redirect sur la home
$_SESSION['request_url'] = $this->lurl;
$this->autoFireHeader = false;
$this->autoFireDebug = false;
$this->autoFireHead = false;
$this->autoFireFooter = false;
}
示例9: menusController
function menusController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Controle d'acces à la rubrique
$this->users->checkAccess('edition');
// Activation du menu
$this->menu_admin = 'edition';
// Definition des types d'éléments
$this->typesElements = array('L' => 'Lien Interne', 'LX' => 'Lien Externe');
}
示例10: thickboxController
function thickboxController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// On masque les Head, header et footer originaux plus le debug
$this->autoFireHeader = false;
$this->autoFireHead = false;
$this->autoFireFooter = false;
$this->autoFireDebug = false;
// On place le redirect sur la home
$_SESSION['request_url'] = $this->url;
}
示例11: cronController
function cronController(&$command, $config)
{
parent::__construct($command, $config, 'default');
$this->autoFireHeader = false;
$this->autoFireHead = false;
$this->autoFireFooter = false;
$this->autoFireView = false;
$this->autoFireDebug = false;
// Securisation des acces
if (isset($_SERVER['REMOTE_ADDR']) && !in_array($_SERVER['REMOTE_ADDR'], $this->Config['ip_admin'][$this->Config['env']])) {
die;
}
}
示例12: traductionsController
function traductionsController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Controle d'acces ŕ la rubrique
$this->users->checkAccess('configuration');
// Activation du menu
$this->menu_admin = 'configuration';
if (isset($_SESSION['user']['role'])) {
if ($_SESSION['user']['role'] == 'tresorier' || $_SESSION['user']['role'] == '') {
header("Location: " . $this->url . '/home');
}
}
}
示例13: fdpController
function fdpController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Check de la plateforme
if ($this->cms == 'iZinoa') {
// Renvoi sur la page de gestion de l'arbo
header('Location:' . $this->lurl . '/tree');
die;
}
// Controle d'acces à la rubrique
$this->users->checkAccess('boutique');
// Activation du menu
$this->menu_admin = 'boutique';
}
示例14: clientsController
function clientsController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// // Check de la plateforme
// if($this->cms == 'iZinoa')
// {
// // Renvoi sur la page de gestion de l'arbo
// header('Location:'.$this->lurl.'/home');
// die;
// }
// Controle d'acces � la rubrique
$this->users->checkAccess('clients');
// Activation du menu
$this->menu_admin = 'clients';
}
示例15: temproduitsController
function temproduitsController(&$command, $config, $app)
{
parent::__construct($command, $config, $app);
$this->catchAll = true;
// Check de la plateforme
if ($this->cms == 'iZinoa') {
// Renvoi sur la page de gestion de l'arbo
header('Location:' . $this->lurl . '/tree');
die;
}
// Controle d'acces ŕ la rubrique
$this->users->checkAccess('boutique');
// Activation du menu
$this->menu_admin = 'boutique';
// Declaration des datas
$this->produits_elements = $this->loadData('produits_elements');
$this->produits = $this->loadData('produits', array('url' => $this->lurl, 'surl' => $this->surl, 'produits_elements' => $this->produits_elements, 'upload' => $this->upload, 'spath' => $this->spath, 'path' => $this->path));
}