/** * 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; }
/** * * @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; }
/** * * @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; }
/** * * @return Map */ private function getCommandsXmlMap() { $map = new Map(); $map->add(Path::factory('/fwk/commands/command', 'commands')->loop(true, '@name')->attribute('class')); return $map; }