public function __construct() { if (!defined('SESS_COMPONENTS_CALL_KEYS')) { AppException::throwException(AppErrorException, 'Не определена константа "SESS_COMPONENTS_CALL_KEYS"'); } if ($this->_templateSkin != App::get()->getTemplateSkin()) { $this->_templateSkin = App::get()->getTemplateSkin(); } }
function throwException($AppExceptionClass, $message, $code = 0, $line = 0) { AppException::throwException($AppExceptionClass, $message, $code, $line); }
public function setComponentClass($ComponentClass) { if (class_exists($ComponentClass, true) && defined($ComponentClass . '::MAIN_COMPONENT_CLASS') && get_parent_class($ComponentClass) == __NAMESPACE__ . "\\Component") { $this->_COMPONENT_CLASS = $ComponentClass; return true; } AppException::throwException(AppErrorException, 'wrong component class'); die; }