FormWrapper
class FormWrapper extends HtmlElement (View source)
The FormWrapper class.
Constants
METHOD_GET |
|
METHOD_POST |
|
ENCTYPE_URLENCODED |
|
ENCTYPE_FORM_DATA |
|
ENCTYPE_TEXT_PLAIN |
|
Methods
__construct(mixed $content = null, array $attribs = array())
Constructor
static FormWrapper
create(mixed $content = null, array $attribs = array())
create
static string
start(string $name = null, string $method = null, string $action = null, string $enctype = null, array $attribs = array())
start
static string
end()
end
string
renderStart()
renderStart
string
renderEnd()
renderEnd
static string
getToken()
getToken
acceptCharset(string $value)
acceptCharset
action(string $value)
action
autocomplete(string $value)
autocomplete
enctype(string $value)
enctype
method(string $value)
method
name(string $value)
name
novalidate(string $value)
novalidate
target(string $value)
target
accept(string $value)
accept
static string
getTokenHandler()
Method to get property TokenHandler
static FormWrapper
setTokenHandler(string $tokenHandler)
Method to set property tokenHandler
Details
at line line 40
__construct(mixed $content = null, array $attribs = array())
Constructor
in HtmlElement at line line 27
string
toString(boolean $forcePair = false)
toString
in DomElement at line line 79
string
render(boolean $forcePair = false)
Alias of toString()
in DomElement at line line 89
string
__toString()
Convert this object to string.
in DomElement at line line 106
mixed
getContent()
Get content.
in DomElement at line line 118
DomElement
setContent(mixed $content)
Set content.
in DomElement at line line 133
string
getAttribute(string $name, mixed $default = null)
Get attributes.
in DomElement at line line 151
DomElement
setAttribute(string $name, string $value)
Set attribute value.
in DomElement at line line 163
array
getAttributes()
Get all attributes.
in DomElement at line line 175
DomElement
setAttributes(array $attribs)
Set all attributes.
in DomElement at line line 187
string
getName()
Get element tag name.
in DomElement at line line 199
DomElement
setName(string $name)
Set element tag name.
in DomElement at line line 214
boolean
offsetExists(mixed $offset)
Whether a offset exists
in DomElement at line line 226
mixed
offsetGet(mixed $offset)
Offset to retrieve
in DomElement at line line 244
void
offsetSet(mixed $offset, mixed $value)
Offset to set
in DomElement at line line 256
void
offsetUnset(mixed $offset)
Offset to unset
at line line 53
static FormWrapper
create(mixed $content = null, array $attribs = array())
create
at line line 69
static string
start(string $name = null, string $method = null, string $action = null, string $enctype = null, array $attribs = array())
start
at line line 91
static string
end()
end
at line line 101
string
renderStart()
renderStart
at line line 113
string
renderEnd()
renderEnd
at line line 123
static string
getToken()
getToken
at line line 140
FormWrapper
acceptCharset(string $value)
acceptCharset
at line line 154
FormWrapper
action(string $value)
action
at line line 168
FormWrapper
autocomplete(string $value)
autocomplete
at line line 182
FormWrapper
enctype(string $value)
enctype
at line line 196
FormWrapper
method(string $value)
method
at line line 210
FormWrapper
name(string $value)
name
at line line 224
FormWrapper
novalidate(string $value)
novalidate
at line line 240
FormWrapper
target(string $value)
target
at line line 254
FormWrapper
accept(string $value)
accept
at line line 266
static string
getTokenHandler()
Method to get property TokenHandler
at line line 278
static FormWrapper
setTokenHandler(string $tokenHandler)
Method to set property tokenHandler