-
Notifications
You must be signed in to change notification settings - Fork 34
classes_lib_controls_anchor.class
HTML anchor element Wraped as control to allow to inherit from this class and add code for AJAX handling in that derivered classes.
Extends: Control » Renderable
Shortcut to create textbased links.
Definition: public static function Link($label, $controller, $event, $data)
Returns: static
Parameters:
-
string $label
Link text -
string $controller
Target controller -
string $event
optional Target event -
array|string $data
optional URL parameters
Creates an Anchor with 'href="javascript:void(0)"'.
Definition: public static function Void($label)
Returns: static
Parameters:
-
mixed $label
Initial content
OVERRIDE Ensures that there's a valid href attribute, if not adds "#" to it.
Create a new HTML anchor element.
Definition: public function __construct($href, $label, $class, $target)
Returns: NOT DOCUMENTED
Parameters:
-
string $href
The href attribute -
string $label
The anchor text -
string $class
The CSS class -
string $target
The target attribute