Beispiel #1
0
 /**
  * Builds an XML Map used to parse services includes (xml)
  * 
  * @return Map
  */
 protected function xmlServicesMapFactory()
 {
     $map = new Map();
     $map->add(Path::factory('/fwk/services', 'services', array())->loop(true, '@xml')->attribute('xmlMap'));
     return $map;
 }
Beispiel #2
0
 /**
  *
  * @return Map
  */
 protected function xmlRewritesMapFactory(Descriptor $desc)
 {
     $map = new Map();
     $map->add(Path::factory('/fwk/url-rewrite/url', 'rewrites')->loop(true)->attribute('route')->attribute('action')->addChildren(Path::factory('param', 'params')->loop(true, '@name')->attribute('required')->attribute('regex')->filter(array($desc, 'propertizeString'))->value('value')));
     return $map;
 }
Beispiel #3
0
 /**
  *
  * @return Map
  */
 protected function xmlActionResultsXmlMapFactory($actionName)
 {
     $map = new Map();
     $map->add(Path::factory(sprintf("/fwk/actions/action[@name='%s']/result", $actionName), 'results')->loop(true, '@name')->attribute('type')->addChildren(Path::factory('param', 'params')->filter(array($this->descriptor, 'propertizeString'))->loop(true, '@name')));
     return $map;
 }
Beispiel #4
0
 /**
  *
  * @return Map
  */
 private function getCommandsXmlMap()
 {
     $map = new Map();
     $map->add(Path::factory('/fwk/commands/command', 'commands')->loop(true, '@name')->attribute('class'));
     return $map;
 }