protected function renderGlobalTemplates(Project $project, $callback = null) { $variables = array('namespaces' => $project->getNamespaces(), 'interfaces' => $project->getProjectInterfaces(), 'classes' => $project->getProjectClasses(), 'items' => $this->getIndex($project), 'index' => $project->getIndex(), 'tree' => $project->getTree()); foreach ($this->theme->getTemplates('global') as $template => $target) { if (null !== $callback) { call_user_func($callback, Message::RENDER_PROGRESS, array('Global', $target, $this->getProgression())); } $this->save($project, $target, $template, $variables); } }
/** * Get all interfaces in the project. * * @return array */ public function getInterfaces() { $this->parse(); return $this->project->getProjectInterfaces(); }