Class html
Simple string-based HTML renderer.
- Core\Object implements Core\Chainable
- Core\Set implements Core\Accessor
- Core\Set\Mutable implements Core\Mutator
- Core\Field implements Core\Inquiry
- Core\Field\Mutable implements Core\Variator
- Core\View
- Core\View\Driver\html
Direct known subclasses
Package: Core\View
Link: Transparent Content Negotiation in HTTP
Link: HTTP Extensions for Distributed Authoring – WEBDAV
Link: An HTTP Extension Framework
Link: Delta encoding in HTTP
Link: HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)
Link: Binding Extensions to Web Distributed Authoring and Versioning (WebDAV)
Link: Additional HTTP Status Codes
Link: Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content
Link: Hypertext Transfer Protocol (HTTP/1.1): Conditional Requests
Link: Hypertext Transfer Protocol (HTTP/1.1): Range Requests
Link: Hypertext Transfer Protocol (HTTP/1.1): Authentication
Link: The Hypertext Transfer Protocol Status Code 308 (Permanent Redirect)
Link: Hypertext Transfer Protocol Version 2 (HTTP/2)
Link: Hypertext Transfer Protocol (HTTP) Client-Initiated Content-Encoding
Since: 3.0
Requires: PHP 5.3
Version: 1.1
Located at View/Driver/html.inc.php
Methods summary
public
|
|
public
|
|
public
|
|
public
boolean
|
#
render( )
Sets the context type to HTML text including the currently active character set and the response code according to the currently set response code, if no headers have yet been sent, and echoes the internal HTML buffer to the standard output. |
public
|
#
setDataForUndefinedKey( string $key, mixed $value )
Adds a KDC value to the view. Additionally, if the key is the empty string, the value is added to the internal HTML buffer. This allows the use of the array-append operator to append values to the internal HTML buffer verbatim. |
public
boolean
|
Methods inherited from Core\Field\Mutable
offsetSet()
,
offsetUnset()
,
setDataForKey()
,
setDataForKeys()
,
setKeyMasquerade()
,
updateMasqueradedKeys()
Methods inherited from Core\Field
getDataForKey()
,
getDataForKeys()
,
getDataForUndefinedKey()
,
issetDataForKey()
,
offsetExists()
,
offsetGet()
Methods inherited from Core\Set\Mutable
Methods inherited from Core\Object
__autocreateFactory()
,
__call()
,
__processParameters()
,
__toString()
,
attachMethod()
,
getValueForKey()
,
getValueForKeyPath()
,
getValueForUndefinedKey()
,
hash()
,
issetValueForKey()
,
setValueForKey()
,
setValueForKeyPath()
,
setValueForUndefinedKey()
,
uuid()
Constants summary
Constants inherited from Core\View
Constants inherited from Core\Object
AnyParameterType
,
AutochainParameterType
,
AutocreateParameterType
,
BooleanParameterType
,
CharParameterType
,
EnumParameterType
,
IntegerParameterType
,
RealParameterType
,
StringParameterType
,
UserParameterType
Properties summary
protected static
string[]
|
$_v_responseCodes
List of known HTTP status response codes based on the status code defined by the Hypertext Transfer Protocol (HTTP) Status Code Registry. |
#
array (
// Informational: Request received, continuing process.
100 => 'Continue', // RFC 7231, Section 6.2.1
101 => 'Switching Protocols', // RFC 7231, Section 6.2.2
102 => 'Processing', // RFC 2518
// Success: The action was successfully received, understood, and
// accepted.
200 => 'OK', // RFC 7231, Section 6.3.1
201 => 'Created', // RFC 7231, Section 6.3.2
202 => 'Accepted', // RFC 7231, Section 6.3.3
203 => 'Non-Authoritative Information', // RFC 7231, Section 6.3.4
204 => 'No Content', // RFC 7231, Section 6.3.5
205 => 'Reset Content', // RFC 7231, Section 6.3.6
206 => 'Partial Content', // RFC 7233, Section 4.1
207 => 'Multi-Status', // RFC 4918
208 => 'Already Reported', // RFC 5842
226 => 'IM Used', // RFC 3229
// Redirection: Further action must be taken in order to complete
// the request.
300 => 'Multiple Choices', // RFC 7231, Section 6.4.1
301 => 'Moved Permanently', // RFC 7231, Section 6.4.2
302 => 'Found', // RFC 7231, Section 6.4.3
303 => 'See Other', // RFC 7231, Section 6.4.4
304 => 'Not Modified', // RFC 7232, Section 4.1
305 => 'Use Proxy', // RFC 7231, Section 6.4.5
306 => 'Reserved', // RFC 7231, Section 6.4.6
307 => 'Temporary Redirect', // RFC 7231, Section 6.4.7
308 => 'Permanent Redirect', // RFC 7538
// Client Error: The request contains bad syntax or cannot be
// fulfilled.
400 => 'Bad Request', // RFC 7231, Section 6.5.1
401 => 'Unauthorized', // RFC 7235, Section 3.1
402 => 'Payment Required', // RFC 7231, Section 6.5.2
403 => 'Forbidden', // RFC 7231, Section 6.5.3
404 => 'Not Found', // RFC 7231, Section 6.5.4
405 => 'Method Not Allowed', // RFC 7231, Section 6.5.5
406 => 'Not Acceptable', // RFC 7231, Section 6.5.6
407 => 'Proxy Authentication Required', // RFC 7235, Section 3.2
408 => 'Request Timeout', // RFC 7231, Section 6.5.7
409 => 'Conflict', // RFC 7231, Section 6.5.8
410 => 'Gone', // RFC 7231, Section 6.5.9
411 => 'Length Required', // RFC 7231, Section 6.5.10
412 => 'Precondition Failed', // RFC 7232, Section 4.2
413 => 'Payload Too Large', // RFC 7231, Section 6.5.11
414 => 'URI Too Long', // RFC 7231, Section 6.5.12
415 => 'Unsupported Media Type', // RFC 7231, Section 6.5.13; RFC 7694, Section 3
416 => 'Range Not Satisfiable', // RFC 7233, Section 4.4
417 => 'Expectation Failed', // RFC 7231, Section 6.5.14
421 => 'Misdirected Request', // RFC 7540, Section 9.1.2
422 => 'Unprocessable Entity', // RFC 4918
423 => 'Locked', // RFC 4918
424 => 'Failed Dependency', // RFC 4918
426 => 'Upgrade Required', // RFC 7231, Section 6.5.15
428 => 'Precondition Required', // RFC 6585
429 => 'Too Many Requests', // RFC 6585
431 => 'Request Header Fields Too Large', // RFC 6585
// Server Error: The server failed to fulfill an apparently valid
// request.
500 => 'Internal Server Error', // RFC 7231, Section 6.6.1
501 => 'Not Implemented', // RFC 7231, Section 6.6.2
502 => 'Bad Gateway', // RFC 7231, Section 6.6.3
503 => 'Service Unavailable', // RFC 7231, Section 6.6.4
504 => 'Gateway Timeout', // RFC 7231, Section 6.6.5
505 => 'HTTP Version Not Supported', // RFC 7231, Section 6.6.6
506 => 'Variant Also Negotiates', // RFC 2295
507 => 'Insufficient Storage', // RFC 4918
508 => 'Loop Detected', // RFC 5842
510 => 'Not Extended', // RFC 2774
511 => 'Network Authentication Required', // RFC 6585
)
|
protected
string
|
$_v_buffer
Internal rendering buffer. |
|
protected
integer
|
$_v_responseCode
Currently set response code. |
#
200
|
Properties inherited from Core\View
$_encoder
,
$_v_parameters
,
$_v_proxy
,
$_v_renderers
,
$_v_translator
,
$_v_uri
Properties inherited from Core\Field\Mutable
Properties inherited from Core\Field
Magic properties
public read-only
string
|
$buffer
Internal rendering buffer. |
public read-only
integer
|
$responseCode
Currently set numeric HTTP response code. Defaults to |
Magic properties inherited from Core\View
$encoder
,
$parameters
,
$proxy
,
$renderers
,
$translator
,
$uri