コード例 #1
0
ファイル: Manager.php プロジェクト: iHunt101/phlite
 function findInstalledCliApps()
 {
     $discovered = new Util\ArrayObject();
     $apps = Project::getCurrent()->getApplications();
     foreach ($apps as $A) {
         foreach ($A->getCliModules() as $mod) {
             // TODO: Error if there is already a mod under this name
             $section = $discovered->setDefault($A->getName(), new Util\ArrayObject());
             $section[$A->getLabel() . ':' . $mod->getName()] = $mod;
         }
     }
     return $discovered;
 }
コード例 #2
0
ファイル: Settings.php プロジェクト: iHunt101/phlite
 function __construct($filename = false)
 {
     parent::__construct();
     if ($filename) {
         $this->loadFile($filename);
     }
 }
コード例 #3
0
ファイル: QueryArray.php プロジェクト: iHunt101/phlite
 function offsetUnset($offset)
 {
     if ($this->frozen) {
         throw new \Exception('QueryDict is frozen');
     }
     return parent::offsetUnset($offset);
 }
コード例 #4
0
ファイル: ModelBase.php プロジェクト: iHunt101/phlite
 function __toString()
 {
     $a = new Util\ArrayObject($this->getPk());
     return sprintf('<%s %s>', get_class($this), $a->join('=', ', '));
 }
コード例 #5
0
ファイル: HeaderArray.php プロジェクト: iHunt101/phlite
 function __construct()
 {
     parent::__construct($_SERVER);
 }