Skip to content

classes_lib_controls_anchor.class

Daniel Spors edited this page Nov 11, 2020 · 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

Void

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

Definition: public static function Void($label)

Returns: Anchor

Parameters:

  • mixed $label Initial content

WdfRender

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

__initialize

Create a new HTML anchor element.

Definition: public function __initialize($href, $label, $class, $target)

Returns: void

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