class vB_XML_Builder_Ajax extends vB_XML_Builder

Traits

Properties

$charset from vB_XML_Builder
$content_type from vB_XML_Builder
$open_tags from vB_XML_Builder
$tabs from vB_XML_Builder
$doc from vB_XML_Builder

Methods

__sleep()

No description

__wakeup()

No description

__construct($content_type = null, $charset = null)

vB_XML_Builder constructor.

fetch_content_type_header()

Fetches the content type header with $this->content_type

fetch_content_length_header()

Fetches the content length header

send_content_type_header()

Sends the content type header with $this->content_type

send_content_length_header()

Sends the content length header

string
fetch_xml_tag()

Returns the <?xml tag complete with $this->charset character set defined

integer
fetch_xml_content_length()

No description

add_group($tag, $attr = array())

No description

close_group()

No description

add_tag($tag, $content = '', $attr = array(), $cdata = false, $htmlspecialchars = false)

No description

build_tag($tag, $attr, $closing = false)

No description

escape_cdata($xml)

No description

output()

No description

print_xml(boolean $full_shutdown = false)

Prints out the queued XML and then exits.

print_xml_header()

Prints XML header, use this if you need to output data that can't be easily queued. It won't work properly if content-length is required

print_xml_end(boolean $full_shutdown = false)

Prints out the queued XML and then exits. Use in combination with print_xml_header();

boolean
fetch_send_content_length_header()

Determine if we send the content length header

string
fetch_xml()

Fetches the queued XML

Details

in vB_Trait_NoSerialize at line 15
__sleep()

in vB_Trait_NoSerialize at line 20
__wakeup()

in vB_XML_Builder at line 31
__construct($content_type = null, $charset = null)

vB_XML_Builder constructor.

Parameters

$content_type
$charset

in vB_XML_Builder at line 54
fetch_content_type_header()

Fetches the content type header with $this->content_type

in vB_XML_Builder at line 62
fetch_content_length_header()

Fetches the content length header

in vB_XML_Builder at line 70
send_content_type_header()

Sends the content type header with $this->content_type

in vB_XML_Builder at line 78
send_content_length_header()

Sends the content length header

in vB_XML_Builder at line 88
string fetch_xml_tag()

Returns the <?xml tag complete with $this->charset character set defined

Return Value

string <?xml tag

in vB_XML_Builder at line 97
integer fetch_xml_content_length()

Return Value

integer Length of document

in vB_XML_Builder at line 102
add_group($tag, $attr = array())

Parameters

$tag
$attr

in vB_XML_Builder at line 109
close_group()

in vB_XML_Builder at line 116
add_tag($tag, $content = '', $attr = array(), $cdata = false, $htmlspecialchars = false)

Parameters

$tag
$content
$attr
$cdata
$htmlspecialchars

in vB_XML_Builder at line 138
build_tag($tag, $attr, $closing = false)

Parameters

$tag
$attr
$closing

at line 15
escape_cdata($xml)

Parameters

$xml

in vB_XML_Builder at line 165
output()

in vB_XML_Builder at line 181
print_xml(boolean $full_shutdown = false)

Prints out the queued XML and then exits.

Parameters

boolean $full_shutdown If not using shut down functions, whether to do a full shutdown (session updates, etc) or to just close the DB

in vB_XML_Builder at line 220
print_xml_header()

Prints XML header, use this if you need to output data that can't be easily queued. It won't work properly if content-length is required

in vB_XML_Builder at line 241
print_xml_end(boolean $full_shutdown = false)

Prints out the queued XML and then exits. Use in combination with print_xml_header();

Parameters

boolean $full_shutdown If not using shut down functions, whether to do a full shutdown (session updates, etc) or to just close the DB

in vB_XML_Builder at line 271
boolean fetch_send_content_length_header()

Determine if we send the content length header

Return Value

boolean

in vB_XML_Builder at line 301
string fetch_xml()

Fetches the queued XML

Return Value

string