Definition at line 56 of file context_help.inc.
◆ ContextHelpManager()
ContextHelpManager::ContextHelpManager |
( |
| ) |
|
Definition at line 80 of file context_help.inc.
82 $this->classes = array();
83 $this->nonmatches = array();
static getValue($component, $name)
Retrieve the value of the specified Setting.
◆ formatLinks()
ContextHelpManager::formatLinks |
( |
|
$form, |
|
|
|
$field |
|
) |
| |
Definition at line 160 of file context_help.inc.
171 $links .=
"<a class=\"context_link\" href=\"javascript:toggleContextHelp('help-{$field}');\" onmouseover=\"showContextHelp('help-{$field}');\" onmouseout=\"hideContextHelp('help-{$field}');\">{$this->contextHelpLabel}</a> ";
172 $text .=
"<div id=\"help-$field\" class=\"contexthelp\">\n";
173 if ($this->showTitle)
175 $text .=
"<p id=\"heading-$field\">$title Help</p>\n";
183 $links .=
"<a class=\"context_link\" href=\"javascript:toggleContextHelp('criteria-{$field}');\" onmouseover=\"showContextHelp('criteria-{$field}');\" onmouseout=\"hideContextHelp('criteria-{$field}');\">{$this->criteriaHelpLabel}</a>";
184 $text .=
"<div id=\"criteria-$field\" class=\"contexthelp\">\n";
185 if ($this->showTitle)
187 $text .=
"<h2 id=\"heading-$field\">$title Criteria</h2>\n";
193 return "{$links}\n{$text}";
getCriteria($form, $field)
◆ getContextHelpRecords()
ContextHelpManager::getContextHelpRecords |
( |
|
$obj | ) |
|
Definition at line 137 of file context_help.inc.
139 $cl =
$obj->contextHelpProxy ?
$obj->contextHelpProxy : get_class(
$obj);
141 if ($this->nonmatches[
$cl])
return null;
143 if ($this->classes[
$cl])
145 return $this->classes[
$cl];
148 $records = indexedQuery(
ContextHelp,
"WHERE class_name='$cl'",
"field");
151 $this->classes[
$cl] = $records;
155 $this->nonmatches[
$cl] =
true;
◆ getCriteria()
ContextHelpManager::getCriteria |
( |
|
$form, |
|
|
|
$field |
|
) |
| |
Definition at line 103 of file context_help.inc.
107 if (!$records)
return null;
109 if (array_key_exists(
$field, $records))
111 return $records[
$field]->criteria;
getContextHelpRecords($obj)
◆ getHelp()
ContextHelpManager::getHelp |
( |
|
$form, |
|
|
|
$field |
|
) |
| |
Definition at line 89 of file context_help.inc.
93 if (!$records)
return null;
95 if (array_key_exists(
$field, $records))
97 return $records[
$field]->help;
◆ getInstance()
static ContextHelpManager::getInstance |
( |
| ) |
|
|
static |
◆ getTitle()
ContextHelpManager::getTitle |
( |
|
$form, |
|
|
|
$field |
|
) |
| |
◆ onInitialize()
static ContextHelpManager::onInitialize |
( |
| ) |
|
|
static |
Definition at line 202 of file context_help.inc.
204 global $auto_form_defaults;
206 $auto_form_defaults[
"onFormatLabel"] =
"addContextHelp";
◆ registerSerializationHandler()
static ContextHelpManager::registerSerializationHandler |
( |
| ) |
|
|
static |
Definition at line 209 of file context_help.inc.
registerHandler($component, $title, $handler)
Registers a serialization handler for a component.
◆ setDefaults()
static ContextHelpManager::setDefaults |
( |
| ) |
|
|
static |
Definition at line 73 of file context_help.inc.
75 Settings::setDefaultValue(
"context_help",
"context_help_label",
"(?)", String,
"Text to display for context help links (HTML is ok)");
76 Settings::setDefaultValue(
"context_help",
"criteria_help_label",
"(criteria)", String,
"Text to display for criteria help links (HTML is ok)");
static setDefaultValue($component, $name, $value, $field_type="String", $annotation="", $category="", $options="", $weight=0)
Sets the default value of the given component setting.
◆ upgradeComponent()
static ContextHelpManager::upgradeComponent |
( |
|
$version | ) |
|
|
static |
◆ $_instance
ContextHelpManager::$_instance |
|
static |
◆ $classes
ContextHelpManager::$classes |
◆ $nonmatches
ContextHelpManager::$nonmatches |
The documentation for this class was generated from the following file: