Exemplo n.º 1
0
 protected function _listModelIds()
 {
     $modelIds = array();
     $objectIds = $this->_storage->listObjectIds();
     foreach ($objectIds as $objectId) {
         $modelIds[] = $objectId;
     }
     return $modelIds;
 }
Exemplo n.º 2
0
 public function __construct($id, Garp_Spawn_Config_Storage_Interface $storage, Garp_Spawn_Config_Format_Interface $format)
 {
     $this['id'] = $id;
     $rawConfig = $storage->load($id);
     $config = $format->parse($id, $rawConfig);
     $this->_setArrayProperties($config);
     $this->_addStaticDefaults();
     $this->_addModelLabel($id);
 }