53 function import($doc,
$tx)
71 Settings::setDefaultValue(
"online_help",
"default_book",
"", String,
"Specify the default help book to which the help link will connect");
72 Settings::setDefaultValue(
"online_help",
"use_page_identifiers",
"", Boolean,
"Use page identifiers as the default help identifier");
74 Settings::setDefaultValue(
"online_help",
"help_css",
"/components/online_help/css/online_help.css", String,
"CSS Files defining the help popup look and feel (comma separated)");
91 if (!$help_page && $useIdentifier) $help_page =
$page->identifier;
93 if ($help_book && $help_page)
96 $helpLink =
"<a class='help_link' href='#' onclick='OnlineHelp.help(\"{$help_book}\", \"{$help_page}\"); return false;'>$helpText</a>";
106 $tabs = array(
"Details" =>
"/admin/help_book_form",
107 "Help Pages" =>
"/admin/help_pages"
110 $qs = ($key) ?
"help_book_id=$key" :
"";
111 return new TabBar(
"tabs",
$tabs,
$qs);
117 $mgr->upgrade($version);
134 if ($flowPlayerScript)
136 $script .=
"<script type='text/javascript' src='$flowPlayerScript'></script>\n";
141 $script .=
"<script type='text/javascript'>\nvar flowplayerPath = '$flowPlayer';\n</script>\n";
147 $additional = explode(
",", $this->book->additional_css_files);
151 $styles .=
"<link href='$c' rel='stylesheet'/>\n";
154 foreach($additional as
$c)
156 $styles .=
"<link href='$c' rel='stylesheet'/>\n";
166 <body
class=
'<?echo $class?>'>
static getStyles()
Returns the HTML link tags for CSS files specified by the registered components in their manifest fil...
static getScripts()
Returns the HTML scripts tags for Javascript files specified by the registered components in their ma...
static using()
Import the datamodels, views and manifest for the specified component(s).
static upgradeComponent($version)
static registerSerializationHandler()
static getAdminTabs($key)
static substituteHelpLink($output)
OnlineHelpSerializationHandler()
static serialize($class, $constraint="")
Serializes the specified DataItems to XML.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
static unserialize($class, $doc, $tx, $save=true)
Instantiates DataItems from the supplied XML document and stores them in the database.
static getValue($component, $name)
Retrieve the value of the specified Setting.
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
if(!checkRole("admin")) $c