本文整理汇总了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;
}
示例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();
}
}
示例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();
}
示例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);
}
示例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;
}
示例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();
}
示例7: __construct
protected function __construct()
{
parent::__construct();
$this->Profiler->sample('Engine Initialisation');
$this->_env = array();
}
示例8: __construct
public function __construct()
{
parent::__construct();
self::$Headers = new DocumentHeaders();
}
示例9: __construct
/**
* The constructor for Frontend calls the parent Symphony constructor.
*
* @see core.Symphony#__construct()
*/
protected function __construct()
{
parent::__construct();
$this->_env = array();
}
示例10: __construct
protected function __construct()
{
parent::__construct();
ShellExceptionHandler::initialise();
$this->Profiler->sample('Engine Initialisation (Shell Mode)');
}