Dotclear 2.25
Loading...
Searching...
No Matches
formLabel Class Reference

HTML Forms label creation helpers. More...

Inheritance diagram for formLabel:
formComponent

Public Member Functions

 __construct (string $text='', int $position=self::INSIDE_TEXT_BEFORE, ?string $id=null)
 
 setPosition (int $position=self::INSIDE_TEXT_BEFORE)
 
 getDefaultElement ()
 
- Public Member Functions inherited from formComponent
 __construct (?string $type=null, ?string $_element=null)
 
 __get (string $property)
 
 __set (string $property, $value)
 
 __isset (string $property)
 
 __unset (string $property)
 
 __call (string $method, $arguments)
 
 __invoke ()
 
 getType ()
 
 setType (string $type)
 
 getElement ()
 
 setElement (string $element)
 
 attachLabel (?formLabel $label=null, ?int $position=null)
 
 detachLabel ()
 
 setIdentifier ($identifier)
 
 checkMandatoryAttributes ()
 
 renderCommonAttributes (bool $includeValue=true)
 

Data Fields

const INSIDE_TEXT_BEFORE = 0
 
const INSIDE_TEXT_AFTER = 1
 
const OUTSIDE_LABEL_BEFORE = 2
 
const OUTSIDE_LABEL_AFTER = 3
 
const INSIDE_LABEL_BEFORE = 0
 
const INSIDE_LABEL_AFTER = 1
 
const OUTSIDE_TEXT_BEFORE = 2
 
const OUTSIDE_TEXT_AFTER = 3
 

Additional Inherited Members

- Static Public Member Functions inherited from formComponent
static init (... $args)
 
- Protected Member Functions inherited from formComponent
 render ()
 
 getDefaultElement ()
 

Detailed Description

HTML Forms label creation helpers.

Constructor & Destructor Documentation

◆ __construct()

__construct ( string  $text = '',
int  $position = self::INSIDE_TEXT_BEFORE,
?string  $id = null 
)

Constructs a new instance.

Parameters
string$textThe text
int$positionThe position
null | string$idThe identifier

Member Function Documentation

◆ setPosition()

setPosition ( int  $position = self::INSIDE_TEXT_BEFORE)

Sets the position.

Parameters
int$positionThe position

◆ getDefaultElement()

getDefaultElement ( )

Gets the default element.

Returns
string The default element.

Reimplemented from formComponent.

Field Documentation

◆ INSIDE_TEXT_BEFORE

const INSIDE_TEXT_BEFORE = 0

◆ INSIDE_TEXT_AFTER

const INSIDE_TEXT_AFTER = 1

◆ OUTSIDE_LABEL_BEFORE

◆ OUTSIDE_LABEL_AFTER

const OUTSIDE_LABEL_AFTER = 3

◆ INSIDE_LABEL_BEFORE

const INSIDE_LABEL_BEFORE = 0

◆ INSIDE_LABEL_AFTER

const INSIDE_LABEL_AFTER = 1

◆ OUTSIDE_TEXT_BEFORE

const OUTSIDE_TEXT_BEFORE = 2

◆ OUTSIDE_TEXT_AFTER

const OUTSIDE_TEXT_AFTER = 3

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