function __set($key, $value) { if (is_string($key) && $this->getAccessVar($key) == Service::READWRITE) { $this->setAccessVar($key, $this->_defaulAccess); $this->_property->{$key} = $value; } else { g4::exception('Значение "' . $key . '" не может быть установлено.'); } }
/** * Инициализация ядра */ public static final function start() { if (empty(self::$g4)) { self::$g4 = new g4(); } }
function __get($Object) { return !is_string($Object) ? g4::requestAllObjects() : ($Object == '*' ? g4::env() : g4::request($Object)); }