MIDDAG for Moodle

html_writer_support extends facade

Facade for local_middag\framework\support\moodle\html_writer_support.

Tags
see
html_writer_support
mixin

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
string

attribute()

public static attribute(string $name, mixed $value) : string
Parameters
$name : string
$value : mixed
Return values
string

attributes()

public static attributes([array<string|int, mixed>|null $attributes = = 'null' ]) : string
Parameters
$attributes : array<string|int, mixed>|null = = 'null'
Return values
string

checkbox()

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
string

div()

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
string

empty_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
string

end_tag()

public static end_tag(string $tagname) : string
Parameters
$tagname : string
Return values
string

get_facade_accessor()

Return the service accessor key for this facade.

public static get_facade_accessor() : string
Return values
string

html_to_text()

public static html_to_text(string $html) : string
Parameters
$html : string
Return values
string

img()

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
string

input_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
string

label()

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
string
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
string

nonempty_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
string

random_id()

public static random_id([mixed $base = = '\'random\'' ]) : string
Parameters
$base : mixed = = '\'random\''
Return values
string

script()

public static script(string $jscode[, mixed $url = = 'null' ]) : string
Parameters
$jscode : string
$url : mixed = = 'null'
Return values
string

select()

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
string

select_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
string

select_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
string

span()

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
string

start_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
string

start_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
string

start_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
string

table()

public static table(html_table $table) : string
Parameters
$table : html_table
Return values
string

tag()

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'
Return values
string

        
On this page

Search results