WidgetActionLink Class Reference
[View]
Print link for given action. More...
Inheritance diagram for
WidgetActionLink:
Public Member Functions |
|
__construct ($text, $action, $params=null, $html_attrs=array()) | |
render ($policy=self::NONE) | |
Renders what should be rendered. |
|
Static Public Member Functions |
|
static | output ($text, $action, $params=null, $html_attrs=array()) |
Public Attributes |
|
$action | |
$attrs | |
$params | |
$text |
Detailed Description
Print link for given action.
Definition at line 8 of file actionlink.widget.php.
Constructor & Destructor Documentation
WidgetActionLink::__construct | ( | $ | text, | |
$ | action, | |||
$ | params = null , |
|||
$ | html_attrs =
array() |
|||
) |
Definition at line 19 of file actionlink.widget.php.
Member Function Documentation
static WidgetActionLink::output | ( | $ | text, | |
$ | action, | |||
$ | params = null , |
|||
$ | html_attrs =
array() |
|||
) | [static] |
Definition at line 14 of file actionlink.widget.php.
00014 { 00015 $w = new WidgetActionLink($text, $action, $params, $html_attrs); 00016 return $w->render(); 00017 }
WidgetActionLink::render | ( | $ | policy =
self::NONE |
) |
Renders what should be rendered.
- Parameters:
-
int $policy Defines how to render, meaning depends on implementation
- Returns:
- string The rendered content
Implements IRenderer.
Definition at line 26 of file actionlink.widget.php.
00026 { 00027 $text = ($this->text instanceof ISelfDescribing) ? String::escape($this->text->get_title()) : $this->text; 00028 return html::a( 00029 $text, 00030 ActionMapper::get_path($this->action, $this->params), 00031 '', 00032 $this->attrs 00033 ); 00034 }
Member Data Documentation
WidgetActionLink::$action |
Definition at line 9 of file actionlink.widget.php.
WidgetActionLink::$attrs |
Definition at line 11 of file actionlink.widget.php.
WidgetActionLink::$params |
Definition at line 10 of file actionlink.widget.php.
WidgetActionLink::$text |
Definition at line 12 of file actionlink.widget.php.
The documentation for this class was generated from the following file:
- gyro/core/view/widgets/actionlink.widget.php