CMS  Version 3.9
PanelButton Class Reference
+ Inheritance diagram for PanelButton:
+ Collaboration diagram for PanelButton:

Public Member Functions

 PanelButton ($icon, $text, $tooltip, $action)
 
 writeScript ()
 
 drawControl ()
 

Public Attributes

 $icon
 
 $text
 
 $tooltip
 
 $action
 

Detailed Description

Definition at line 15 of file panel_view.inc.

Member Function Documentation

◆ drawControl()

PanelButton::drawControl ( )

Implements PanelControl.

Definition at line 34 of file panel_view.inc.

35  {
36 ?>
37  <img src="<?echo $this->icon?>" alt="<?echo $this->text?>" title="<?echo $this->tooltip?>" style="border: none; display:inline-block;vertical-align: middle" onclick="<?echo $this->action?>; return false"/>
38 <?
39  }
$helpTree style
Definition: tree.inc:46
$bookmark title

◆ PanelButton()

PanelButton::PanelButton (   $icon,
  $text,
  $tooltip,
  $action 
)

Definition at line 22 of file panel_view.inc.

23  {
24  $this->icon = $icon;
25  $this->text = $text;
26  $this->tooltip = $tooltip;
27  $this->action = $action;
28  }
$form action
Definition: edit.inc:67

◆ writeScript()

PanelButton::writeScript ( )

Implements PanelControl.

Definition at line 30 of file panel_view.inc.

31  {
32  }

Member Data Documentation

◆ $action

PanelButton::$action

Definition at line 20 of file panel_view.inc.

◆ $icon

PanelButton::$icon

Definition at line 17 of file panel_view.inc.

◆ $text

PanelButton::$text

Definition at line 18 of file panel_view.inc.

◆ $tooltip

PanelButton::$tooltip

Definition at line 19 of file panel_view.inc.


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