Example #1
0
 /**
  * This returns the list of available manuals (active ones) in a more useful way for templates.  It is an associative array
  * where the key is the short name of the manual and the value is the display/long name.
  *
  * @return array
  */
 public function getManualsForProduct($product)
 {
     PonyDocsProductVersion::LoadVersionsForProduct($product);
     // Dependency
     PonyDocsProductVersion::getSelectedVersion($product);
     $manuals = PonyDocsProductManual::LoadManualsForProduct($product);
     // Dependency
     $out = array();
     foreach ($manuals as $m) {
         $out[$m->getShortName()] = $m->getLongName();
     }
     return $out;
 }