private static function RegisterError($msg) { global $APPLICATION; $APPLICATION->ThrowException(new CAdminException(array(array('text' => $msg)))); self::$LAST_ERROR = $msg; }