private function generateGid() { if ($this->parent && ($parentGid = $this->parent->getGid())) { $gid = $parentGid . '_' . $this->id; } else { $gid = $this->id; } return $gid; }
private function traverse(DoxyGroup $dg) { $this->groupDefs[] = " * @defgroup {$dg->getGid()} {$dg->getId()}"; if ($about = $dg->getAbout()) { $this->groupDefs[] = " * " . $about; } if ($parentGid = $dg->getParent()->getGid()) { $this->groupDefs[] = " * @ingroup " . $parentGid; } foreach ($dg->getInner() as $innerGroup) { $this->traverse($innerGroup); } }
/** * @return DoxyGroup */ private function makeGroup(SmartSimpleXmlElement $container, DoxyGroup $parent) { $group = new DoxyGroup((string) $container['id'], $parent, ($gid = (string) $container['gid']) ? $gid : null); if (isset($container['name'])) { $group->setName((string) $container['name']); } if (isset($container['version'])) { $group->setVersion((string) $container['version']); } if (isset($container->about)) { $group->setAbout(htmlspecialchars(htmlSpecialChars($container->about->getCdata()))); } return $group; }