コード例 #1
0
 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();
     }
 }
コード例 #2
0
ファイル: corelib.php プロジェクト: r3c130n/scriptacid
function throwException($AppExceptionClass, $message, $code = 0, $line = 0)
{
    AppException::throwException($AppExceptionClass, $message, $code, $line);
}
コード例 #3
0
 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;
 }