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


PHP Symphony::__construct方法代码示例

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


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

示例1: __construct

 protected function __construct()
 {
     parent::__construct();
     $this->Profiler->sample('Engine Initialisation');
     $this->displayProfilerReport = false;
     $this->_callback = NULL;
 }
开发者ID:bauhouse,项目名称:sym-fluid960gs,代码行数:7,代码来源:class.administration.php

示例2: __construct

 /**
  * Overrides the default Symphony constructor to add XSRF checking
  */
 protected function __construct()
 {
     parent::__construct();
     // Ensure the request is legitimate. RE: #1874
     if (self::isXSRFEnabled()) {
         XSRF::validateRequest();
     }
 }
开发者ID:valery,项目名称:symphony-2,代码行数:11,代码来源:class.administration.php

示例3: __construct

 /**
  * The constructor for Administration calls the parent Symphony
  * constructor.
  *
  * @see core.Symphony#__construct()
  * @deprecated The constructor creates backwards compatible references
  *  to `$this->Database`, `$this->ExtensionManager` and `$this->Configuration`
  *  that act as alias for `Symphony::Database()`, `Symphony::ExtensionManager()`
  *  and `Symphony::Configuration()`. These will be removed in the
  *  next Symphony release
  */
 protected function __construct()
 {
     parent::__construct();
     // Need this part for backwards compatiblity
     $this->Database = Symphony::Database();
     $this->Configuration = Symphony::Configuration();
     $this->ExtensionManager = Symphony::ExtensionManager();
 }
开发者ID:shobhalakshminarayana,项目名称:Bugaroo,代码行数:19,代码来源:class.administration.php

示例4: __construct

 public function __construct()
 {
     parent::__construct();
     self::$Headers = new DocumentHeaders();
     self::$Document = new XMLDocument();
     self::$Document->appendChild(self::$Document->createElement('data'));
     Widget::init(self::$Document);
 }
开发者ID:symphonycms,项目名称:symphony-3,代码行数:8,代码来源:class.frontend.php

示例5: __construct

 protected function __construct()
 {
     parent::__construct();
     $this->Profiler->sample('Engine Initialisation');
     // Need this part for backwards compatiblity
     $this->Database = Symphony::Database();
     $this->Configuration = Symphony::Configuration();
     $this->_callback = NULL;
 }
开发者ID:bauhouse,项目名称:sym-calendar,代码行数:9,代码来源:class.administration.php

示例6: __construct

 protected function __construct()
 {
     try {
         parent::__construct();
         // We want to ignore the 'Headers Already Sent' exception
     } catch (\Exception $e) {
         // Should this not be a headers already sent exception, rethrow it
         if (!preg_match('@headers\\s+already\\s+sent@i', $e->getMessage())) {
             throw $e;
         }
     }
     // Set Shell extension specific handlers
     ExceptionHandler::initialise();
     ErrorHandler::initialise();
     $this->_args = new ArgumentIterator();
 }
开发者ID:pointybeard,项目名称:shell,代码行数:16,代码来源:Shell.php

示例7: __construct

 protected function __construct()
 {
     parent::__construct();
     $this->Profiler->sample('Engine Initialisation');
     $this->_env = array();
 }
开发者ID:bauhouse,项目名称:sym-fluidgrids,代码行数:6,代码来源:class.frontend.php

示例8: __construct

 public function __construct()
 {
     parent::__construct();
     self::$Headers = new DocumentHeaders();
 }
开发者ID:brendo,项目名称:symphony-3,代码行数:5,代码来源:class.administration.php

示例9: __construct

 /**
  * The constructor for Frontend calls the parent Symphony constructor.
  *
  * @see core.Symphony#__construct()
  */
 protected function __construct()
 {
     parent::__construct();
     $this->_env = array();
 }
开发者ID:bauhouse,项目名称:Piano-Sonata,代码行数:10,代码来源:class.frontend.php

示例10: __construct

 protected function __construct()
 {
     parent::__construct();
     ShellExceptionHandler::initialise();
     $this->Profiler->sample('Engine Initialisation (Shell Mode)');
 }
开发者ID:bauhouse,项目名称:sym-extensions,代码行数:6,代码来源:class.shell.php


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