protected function __construct()
 {
     parent::__construct();
     $this->Profiler->sample('Engine Initialisation');
     $this->displayProfilerReport = false;
     $this->_callback = NULL;
 }
예제 #2
0
 /**
  * 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();
     }
 }
 /**
  * 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
0
 public function __construct()
 {
     parent::__construct();
     self::$Headers = new DocumentHeaders();
     self::$Document = new XMLDocument();
     self::$Document->appendChild(self::$Document->createElement('data'));
     Widget::init(self::$Document);
 }
 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
0
파일: Shell.php 프로젝트: pointybeard/shell
 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
0
 protected function __construct()
 {
     parent::__construct();
     $this->Profiler->sample('Engine Initialisation');
     $this->_env = array();
 }
예제 #8
0
 public function __construct()
 {
     parent::__construct();
     self::$Headers = new DocumentHeaders();
 }
예제 #9
0
 /**
  * The constructor for Frontend calls the parent Symphony constructor.
  *
  * @see core.Symphony#__construct()
  */
 protected function __construct()
 {
     parent::__construct();
     $this->_env = array();
 }
예제 #10
0
 protected function __construct()
 {
     parent::__construct();
     ShellExceptionHandler::initialise();
     $this->Profiler->sample('Engine Initialisation (Shell Mode)');
 }