Skip to content

classes_lib_controls_anchor.class

Daniel Spors edited this page Feb 14, 2023 · 3 revisions

Classes in file lib/controls/anchor.class.php

class Anchor

HTML anchor element Wraped as control to allow to inherit from this class and add code for AJAX handling in that derivered classes.

Namespace: ScavixWDF\Controls

Extends: Control » Renderable

Link

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

Void

Creates an Anchor with 'href="javascript:void(0)"'.

Definition: public static function Void($label)

Returns: static

Parameters:

  • mixed $label Initial content

WdfRender

OVERRIDE Ensures that there's a valid href attribute, if not adds "#" to it.

__construct

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

Clone this wiki locally