PHP Class Habari\FormControlStatic

Inheritance: extends FormControl
Show file Open project: habari/system

Public Properties

Property Type Description
$static string The internal representation of the static HTML content

Public Methods

Method Description
create ( string $name, habari\FormStorage | string | null $storage = 'null:null', array $properties = [], array $settings = [] ) : FormControlStatic Create a new instance of FormControlStatic and return it, use the fluent interface
get ( Theme $theme ) : string Produce HTML output for this static text control.
set_static ( string $static ) : FormControlStatic Set the static content of this control

Method Details

create() public static method

Create a new instance of FormControlStatic and return it, use the fluent interface
public static create ( string $name, habari\FormStorage | string | null $storage = 'null:null', array $properties = [], array $settings = [] ) : FormControlStatic
$name string The name of the control
$storage habari\FormStorage | string | null A storage location for the data collected by the control
$properties array An array of properties that apply to the output HTML
$settings array An array of settings that apply to this control object
return FormControlStatic An instance of the referenced FormControl with the supplied parameters

get() public method

Produce HTML output for this static text control.
public get ( Theme $theme ) : string
$theme Theme The theme used to render this control
return string HTML that will render this control in the form

set_static() public method

Set the static content of this control
public set_static ( string $static ) : FormControlStatic
$static string The static content of this control
return FormControlStatic $this

Property Details

$static public property

The internal representation of the static HTML content
public string $static
return string