/** * Application PHP 5 constructor */ public function __construct() { parent::__construct(); /** * call Instance Error Handler */ ErrorHandler::singleton(); /** * Set Benchmark */ Benchmark::set('app', 'start'); /** * start buffer to make content overide */ ob_start(); /** * Check empty to prevent Multiple call */ if (empty(static::$x_record_app)) { /** * Prereserved Application * [APP, APPLICATION, ENPROJECT, CORE] */ // protect it static::$x_protected_app = array(static::$x_app_prefix . 'APP', static::$x_app_prefix . 'APPLICATION', static::$x_app_prefix . 'ENPROJECT', static::$x_app_prefix . 'CORE'); // set it foreach (static::$x_protected_app as $value) { static::$x_record_app[$value] = $this; } } }