コード例 #1
0
ファイル: Package.php プロジェクト: peopleplan/Pyrus
 function __set($var, $value)
 {
     if (!isset($this->packagename)) {
         throw new \Pyrus\Registry\Exception('Attempt to retrieve ' . $var . ' from unknown package');
     }
     \Pyrus\PackageFile\v2::__set($var, $value);
     // occasionally, this next line will result in failure to install when incomplete data is there,
     // so we silently skip the save, and mark the packagefile as dirty
     try {
         $this->reg->replace($this);
         $this->dirty = false;
     } catch (\Pyrus\Registry\Exception $e) {
         $this->dirty = true;
     }
 }
コード例 #2
0
ファイル: Base.php プロジェクト: peopleplan/Pyrus
 function __set($var, $value)
 {
     if (!isset($this->packagename)) {
         throw new \Pyrus\Registry\Exception('Attempt to retrieve ' . $var . ' from unknown package');
     }
     parent::__set($var, $value);
     $this->reg->replace($this);
 }