getLocale(), $tocId); } /** * Return the filename for a built-in OCS help topic filename. */ function getTopicFilename($topicId) { $help =& Help::getHelp(); return sprintf('help/%s/%s.xml', $help->getLocale(), $topicId); } function getTopicIdForFilename($filename) { $parts = split('/', str_replace('\\', '/', $filename)); array_shift($parts); // Knock off "help" array_shift($parts); // Knock off locale return substr(join('/', $parts), 0, -4); // Knock off .xml } function getSearchPath($locale = null) { if ($locale == '') { $help =& Help::getHelp(); $locale = $help->getLocale(); } return 'help' . DIRECTORY_SEPARATOR . $locale; } } ?>