html_radiobutton

Extends \html_inputfield

Class to create HTML radio buttons

package

Framework

subpackage

View

Methods

Return the tag code

show() : string
inherited

Response

string

The finally composed HTML tag

Constructor

__construct(array $attrib = array()) 
inherited

Arguments

$attrib

array

Hash array with tag attributes

Generic method to create a HTML tag

tag(string $tagname, array $attrib = array(), string $content = null, array $allowed_attrib = null) : string
inherited static

Arguments

$tagname

string

Tag name

$attrib

array

Tag attributes as key/value pairs

$content

string

Optinal Tag content (creates a container tag)

$allowed_attrib

array

List with allowed attributes, omit to allow all

Response

string

The XHTML tag

doctype

doctype($type) 
inherited static

Arguments

$type

Derrived method for <div> containers

div(mixed $attr = null, string $cont = null) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with class name

$cont

string

Div content

Response

string

HTML code

Derrived method for <p> blocks

p(mixed $attr = null, string $cont = null) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with class name

$cont

string

Paragraph content

Response

string

HTML code

Derrived method to create <img />

img(mixed $attr = null) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with image source (src)

Response

string

HTML code

Derrived method for link tags

a(mixed $attr, string $cont) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with link location (href)

$cont

string

Link content

Response

string

HTML code

Derrived method for inline span tags

span(mixed $attr, string $cont) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with class name

$cont

string

Tag content

Response

string

HTML code

Derrived method for form element labels

label(mixed $attr, string $cont) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with 'for' attrib

$cont

string

Tag content

Response

string

HTML code

Derrived method to create <iframe></iframe>

iframe(mixed $attr = null, $cont = null) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with frame source (src)

$cont

Response

string

HTML code

Derrived method to create <script> tags

script(mixed $attr, string $cont = null) : string
inherited static
see \html::tag()

Arguments

$attr

mixed

Hash array with tag attributes or string with script source (src)

$cont

string

Javascript code to be placed as tag content

Response

string

HTML code

Derrived method for line breaks

br($attrib = array()) : string
inherited static
see \html::tag()

Arguments

$attrib

Response

string

HTML code

Create string with attributes

attrib_string(array $attrib = array(), array $allowed = null) : string
inherited static

Arguments

$attrib

array

Associative arry with tag attributes

$allowed

array

List of allowed attributes

Response

string

Valid attribute string

Convert a HTML attribute string attributes to an associative array (name => value)

parse_attrib_string($str) : array
inherited static

Arguments

$str

Response

array

Key-value pairs of parsed attributes

Replacing specials characters in html attribute value

quote(string $str) : string
inherited static

Arguments

$str

string

Input string

Response

string

The quoted string

Properties

type

type : 
inherited

tagname

tagname : 
inherited

allowed

allowed : 
inherited

attrib

attrib : 
inherited

content

content : 
inherited

doctype

doctype : 
inherited static

lc_tags

lc_tags : 
inherited static

common_attrib

common_attrib : 
inherited static

containers

containers : 
inherited static