Пример #1
0
 /**
  * Method used to get all of the navigation links related to a
  * specific help topic.
  *
  * @access  public
  * @param   string $topic The topic title
  * @return  array The list of navigation links
  */
 function getNavigationLinks($topic)
 {
     global $topics;
     $links = array();
     $links[] = @array("topic" => "", "title" => $topics[$topic]["title"]);
     while ($parent = Help::getParent($topic)) {
         $links[] = array("topic" => $parent["topic"], "title" => $parent["title"]);
         $topic = $parent["topic"];
     }
     $links = array_reverse($links);
     return $links;
 }