コード例 #1
0
ファイル: Service.class.php プロジェクト: cheevauva/trash
 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 . '" не может быть установлено.');
     }
 }
コード例 #2
0
ファイル: g4.class.php プロジェクト: cheevauva/trash
 /**
  * Инициализация ядра
  */
 public static final function start()
 {
     if (empty(self::$g4)) {
         self::$g4 = new g4();
     }
 }
コード例 #3
0
ファイル: Mr.class.php プロジェクト: cheevauva/trash
 function __get($Object)
 {
     return !is_string($Object) ? g4::requestAllObjects() : ($Object == '*' ? g4::env() : g4::request($Object));
 }