CMS  Version 3.9
ToolHintView Class Reference

Public Member Functions

 __construct ($code)
 
 draw ()
 

Public Attributes

 $hint
 

Detailed Description

Definition at line 39 of file tool_hints_view.inc.

Constructor & Destructor Documentation

◆ __construct()

ToolHintView::__construct (   $code)

Definition at line 43 of file tool_hints_view.inc.

44  {
45  $this->hint = ToolHint::findToolHint($code);
46  }
static findToolHint($code)
Definition: tool_hint.inc:51
$code
Definition: hide_hint.inc:36

Member Function Documentation

◆ draw()

ToolHintView::draw ( )

Definition at line 48 of file tool_hints_view.inc.

49  {
50  global $script;
51 
52  if ($this->hint->isHidden()) return;
53  $title = jsSafe($this->hint->title);
54 
55  $script .= <<<ENDSCRIPT
56  <script type='text/javascript'>
57  window.addEvent('load', function()
58  {
59  ToolHint.show('{$this->hint->code}', '{$title}');
60  });
61  </script>
62 ENDSCRIPT;
63  }

Member Data Documentation

◆ $hint

ToolHintView::$hint

Definition at line 41 of file tool_hints_view.inc.


The documentation for this class was generated from the following file: