vBulletin v6.1.0

vB_XML_Builder
in package
uses vB_Trait_NoSerialize

Table of Contents

Properties

$charset  : mixed
$content_type  : mixed
$doc  : mixed
$open_tags  : mixed
$tabs  : mixed

Methods

__construct()  : mixed
vB_XML_Builder constructor.
__serialize()  : array<string|int, mixed>
__sleep()  : array<string|int, mixed>
__unserialize()  : void
__wakeup()  : void
add_group()  : mixed
add_tag()  : mixed
build_tag()  : mixed
close_group()  : mixed
escape_cdata()  : mixed
fetch_xml()  : string
Fetches the queued XML
fetch_xml_tag()  : mixed
Returns the <?xml tag complete with $this->charset character set defined
output()  : mixed
print_xml()  : mixed
Prints out the queued XML and then exits.
print_xml_end()  : mixed
Prints out the queued XML and then exits. Use in combination with print_xml_header();
print_xml_header()  : mixed
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
send_content_length_header()  : mixed
Sends the content length header
send_content_type_header()  : mixed
Sends the content type header with $this->content_type

Properties

$charset

public mixed $charset = 'windows-1252'

$content_type

public mixed $content_type = 'text/xml'

$open_tags

public mixed $open_tags = []

Methods

__construct()

vB_XML_Builder constructor.

public __construct([mixed $content_type = null ][, mixed $charset = null ]) : mixed
Parameters
$content_type : mixed = null
$charset : mixed = null

__serialize()

public __serialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

__sleep()

public __sleep() : array<string|int, mixed>
Return values
array<string|int, mixed>

__unserialize()

public __unserialize(array<string|int, mixed> $serialized) : void
Parameters
$serialized : array<string|int, mixed>

add_group()

public add_group(mixed $tag[, mixed $attr = array() ]) : mixed
Parameters
$tag : mixed
$attr : mixed = array()

add_tag()

public add_tag(mixed $tag[, mixed $content = '' ][, mixed $attr = [] ][, mixed $cdata = false ][, mixed $htmlspecialchars = false ]) : mixed
Parameters
$tag : mixed
$content : mixed = ''
$attr : mixed = []
$cdata : mixed = false
$htmlspecialchars : mixed = false

build_tag()

public build_tag(mixed $tag, mixed $attr[, mixed $closing = false ]) : mixed
Parameters
$tag : mixed
$attr : mixed
$closing : mixed = false

close_group()

public close_group() : mixed

escape_cdata()

public escape_cdata(mixed $xml) : mixed
Parameters
$xml : mixed

fetch_xml()

Fetches the queued XML

public fetch_xml() : string
Return values
string

fetch_xml_tag()

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

public fetch_xml_tag() : mixed
Tags
@return

string <?xml tag

print_xml()

Prints out the queued XML and then exits.

public print_xml() : mixed

print_xml_end()

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

public print_xml_end() : mixed

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

public print_xml_header() : mixed

send_content_length_header()

Sends the content length header

public send_content_length_header() : mixed

send_content_type_header()

Sends the content type header with $this->content_type

public send_content_type_header() : mixed

        
On this page

Search results