Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/application.php
<?php | <?php | ||||
/** | /** | ||||
* @version $Id$ | * @version $Id$ | ||||
* @package In-Portal | * @package In-Portal | ||||
* @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. | * @copyright Copyright (C) 1997 - 2009 Intechnic. All rights reserved. | ||||
* @license GNU/GPL | * @license GNU/GPL | ||||
* In-Portal is Open Source software. | * In-Portal is Open Source software. | ||||
* This means that this software may have been modified pursuant | * This means that this software may have been modified pursuant | ||||
* the GNU General Public License, and as distributed it includes | * the GNU General Public License, and as distributed it includes | ||||
* or is derivative of works licensed under the GNU General Public License | * or is derivative of works licensed under the GNU General Public License | ||||
* or other free or open source software licenses. | * or other free or open source software licenses. | ||||
* See http://www.in-portal.org/license for copyright notices and details. | * See http://www.in-portal.org/license for copyright notices and details. | ||||
*/ | */ | ||||
use Intechnic\InPortal\Core\kernel\Console\ConsoleApplication; | |||||
defined('FULL_PATH') or die('restricted access!'); | defined('FULL_PATH') or die('restricted access!'); | ||||
/** | /** | ||||
* Basic class for Kernel4-based Application | * Basic class for Kernel4-based Application | ||||
* | * | ||||
* This class is a Facade for any other class which needs to deal with Kernel4 framework.<br> | * This class is a Facade for any other class which needs to deal with Kernel4 framework.<br> | ||||
* The class encapsulates the main run-cycle of the script, provide access to all other objects in the framework.<br> | * The class encapsulates the main run-cycle of the script, provide access to all other objects in the framework.<br> | ||||
* <br> | * <br> | ||||
▲ Show 20 Lines • Show All 1025 Lines • ▼ Show 20 Line(s) | |||||
$this->HTML = $this->Parser->Run($t); | $this->HTML = $this->Parser->Run($t); | ||||
if ( defined('DEBUG_MODE') && $this->isDebugMode() && kUtil::constOn('DBG_PROFILE_MEMORY') ) { | if ( defined('DEBUG_MODE') && $this->isDebugMode() && kUtil::constOn('DBG_PROFILE_MEMORY') ) { | ||||
$this->Debugger->appendMemoryUsage('Application after Parsing:'); | $this->Debugger->appendMemoryUsage('Application after Parsing:'); | ||||
} | } | ||||
} | } | ||||
/** | /** | ||||
* Returns console application. | |||||
* | |||||
* @return ConsoleApplication | |||||
*/ | |||||
public function getConsoleApplication() | |||||
{ | |||||
return $this->makeClass('Intechnic\InPortal\Core\kernel\Console\ConsoleApplication'); | |||||
} | |||||
/** | |||||
* Only renders template | * Only renders template | ||||
* | * | ||||
* @see kDBEventHandler::_errorNotFound() | * @see kDBEventHandler::_errorNotFound() | ||||
*/ | */ | ||||
public function QuickRun() | public function QuickRun() | ||||
{ | { | ||||
// discard any half-parsed content | // discard any half-parsed content | ||||
ob_clean(); | ob_clean(); | ||||
▲ Show 20 Lines • Show All 2001 Lines • Show Last 20 Lines |