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


PHP bootstrap::__construct方法代码示例

本文整理汇总了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);
 }
开发者ID:ccq18,项目名称:EduSoho,代码行数:7,代码来源:adminBoot.php

示例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';
 }
开发者ID:bilel99,项目名称:oge,代码行数:9,代码来源:utilisateurs.php

示例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';
 }
开发者ID:bilel99,项目名称:oge,代码行数:9,代码来源:stats.php

示例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;
 }
开发者ID:bilel99,项目名称:oge,代码行数:10,代码来源:thickbox.php

示例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');
         }
     }
 }
开发者ID:bilel99,项目名称:oge,代码行数:10,代码来源:settings.php

示例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();
 }
开发者ID:ccq18,项目名称:EduSoho,代码行数:13,代码来源:phpwindBoot.php

示例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;
 }
开发者ID:bilel99,项目名称:oge,代码行数:10,代码来源:protected.php

示例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;
 }
开发者ID:bilel99,项目名称:oge,代码行数:10,代码来源:ajax.php

示例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');
 }
开发者ID:bilel99,项目名称:oge,代码行数:11,代码来源:menus.php

示例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;
 }
开发者ID:bilel99,项目名称:oge,代码行数:12,代码来源:thickbox.php

示例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;
     }
 }
开发者ID:bilel99,项目名称:oge,代码行数:13,代码来源:cron.php

示例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');
         }
     }
 }
开发者ID:bilel99,项目名称:oge,代码行数:14,代码来源:traductions.php

示例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';
 }
开发者ID:bilel99,项目名称:oge,代码行数:15,代码来源:fdp.php

示例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';
 }
开发者ID:bilel99,项目名称:oge,代码行数:16,代码来源:clients.php

示例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));
 }
开发者ID:bilel99,项目名称:oge,代码行数:18,代码来源:temproduits.php


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