html_writer_support extends facade
Facade for local_middag\framework\support\moodle\html_writer_support.
Tags
Table of Contents
Methods
- alist() : string
- attribute() : string
- attributes() : string
- checkbox() : string
- div() : string
- empty_tag() : string
- end_div() : string
- end_span() : string
- end_tag() : string
- get_facade_accessor() : string
- Return the service accessor key for this facade.
- html_to_text() : string
- img() : string
- input_hidden_params() : string
- label() : string
- link() : string
- nonempty_tag() : string
- random_id() : string
- script() : string
- select() : string
- select_time() : string
- select_yes_no() : string
- span() : string
- start_div() : string
- start_span() : string
- start_tag() : string
- table() : string
- tag() : string
Methods
alist()
public
static alist(array<string|int, mixed> $items[, array<string|int, mixed>|null $attributes = = 'null' ][, string $tag = = '\'ul\'' ]) : string
Parameters
- $items : array<string|int, mixed>
- $attributes : array<string|int, mixed>|null = = 'null'
- $tag : string = = '\'ul\''
Return values
stringattribute()
public
static attribute(string $name, mixed $value) : string
Parameters
- $name : string
- $value : mixed
Return values
stringattributes()
public
static attributes([array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringcheckbox()
public
static checkbox(string $name, string $value[, bool $checked = = 'true' ][, string $label = = '\'\'' ][, array<string|int, mixed>|null $attributes = = 'null' ][, array<string|int, mixed>|null $labelattributes = = 'null' ]) : string
Parameters
- $name : string
- $value : string
- $checked : bool = = 'true'
- $label : string = = '\'\''
- $attributes : array<string|int, mixed>|null = = 'null'
- $labelattributes : array<string|int, mixed>|null = = 'null'
Return values
stringdiv()
public
static div(string $content[, string $class = = '\'\'' ][, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $content : string
- $class : string = = '\'\''
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringempty_tag()
public
static empty_tag(string $tagname[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $tagname : string
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringend_div()
public
static end_div() : string
Return values
stringend_span()
public
static end_span() : string
Return values
stringend_tag()
public
static end_tag(string $tagname) : string
Parameters
- $tagname : string
Return values
stringget_facade_accessor()
Return the service accessor key for this facade.
public
static get_facade_accessor() : string
Return values
stringhtml_to_text()
public
static html_to_text(string $html) : string
Parameters
- $html : string
Return values
stringimg()
public
static img(mixed $src, mixed $alt[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $src : mixed
- $alt : mixed
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringinput_hidden_params()
public
static input_hidden_params(moodle_url $url[, array<string|int, mixed>|null $exclude = = 'null' ]) : string
Parameters
- $url : moodle_url
- $exclude : array<string|int, mixed>|null = = 'null'
Return values
stringlabel()
public
static label(string $text, string|null $for[, bool $colonize = = 'true' ][, array<string|int, mixed> $attributes = = '[]' ]) : string
Parameters
- $text : string
- $for : string|null
- $colonize : bool = = 'true'
- $attributes : array<string|int, mixed> = = '[]'
Return values
stringlink()
public
static link(mixed $url, string $text[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $url : mixed
- $text : string
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringnonempty_tag()
public
static nonempty_tag(string $tagname, mixed $contents[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $tagname : string
- $contents : mixed
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringrandom_id()
public
static random_id([mixed $base = = '\'random\'' ]) : string
Parameters
- $base : mixed = = '\'random\''
Return values
stringscript()
public
static script(string $jscode[, mixed $url = = 'null' ]) : string
Parameters
- $jscode : string
- $url : mixed = = 'null'
Return values
stringselect()
public
static select(array<string|int, mixed> $options, string $name[, mixed $selected = = '\'\'' ][, mixed $nothing = = '[\'\' => \'choosedots\']' ][, array<string|int, mixed>|null $attributes = = 'null' ][, array<string|int, mixed> $disabled = = '[]' ]) : string
Parameters
- $options : array<string|int, mixed>
- $name : string
- $selected : mixed = = '\'\''
- $nothing : mixed = = '[\'\' => \'choosedots\']'
- $attributes : array<string|int, mixed>|null = = 'null'
- $disabled : array<string|int, mixed> = = '[]'
Return values
stringselect_time()
public
static select_time(string $type, string $name[, int $currenttime = = '0' ][, int $step = = '5' ][, array<string|int, mixed>|null $attributes = = 'null' ][, mixed $timezone = = '99' ]) : string
Parameters
- $type : string
- $name : string
- $currenttime : int = = '0'
- $step : int = = '5'
- $attributes : array<string|int, mixed>|null = = 'null'
- $timezone : mixed = = '99'
Return values
stringselect_yes_no()
public
static select_yes_no(string $name[, bool $selected = = 'true' ][, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $name : string
- $selected : bool = = 'true'
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringspan()
public
static span(string $content[, string $class = = '\'\'' ][, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $content : string
- $class : string = = '\'\''
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringstart_div()
public
static start_div([string $class = = '\'\'' ][, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $class : string = = '\'\''
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringstart_span()
public
static start_span([string $class = = '\'\'' ][, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $class : string = = '\'\''
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringstart_tag()
public
static start_tag(string $tagname[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $tagname : string
- $attributes : array<string|int, mixed>|null = = 'null'
Return values
stringtable()
public
static table(html_table $table) : string
Parameters
- $table : html_table
Return values
stringtag()
public
static tag(string $tagname, string $contents[, array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
- $tagname : string
- $contents : string
- $attributes : array<string|int, mixed>|null = = 'null'