ApiOpenStudio PHPDoc

DataContainer extends Entity
in package
Uses DetectTypeTrait, ConvertToBooleanTrait, ConvertToIntegerTrait, ConvertToFloatTrait, ConvertToTextTrait, ConvertToArrayTrait, ConvertToJsonTrait, ConvertToXmlTrait, ConvertToHtmlTrait, ConvertToImageTrait

Class DataContainer

Provide s container for data to be passed between processors in a clean manner.

Table of Contents

$data  : mixed
Data.
$type  : string
Data type.
$types  : array<string|int, mixed>
All data types.
__construct()  : mixed
DataContainer constructor.
detectType()  : string
Detect the type of data that is input .
fromArrayToArray()  : array<string|int, mixed>
Convert array to array.
fromArrayToBoolean()  : bool
Convert array to boolean.
fromArrayToFloat()  : float
Convert an array to a float.
fromArrayToHtml()  : string
Convert array to HTML string.
fromArrayToImage()  : string
Convert array to image.
fromArrayToInteger()  : int
Convert a array to an integer.
fromArrayToJson()  : string
Convert array to JSON string.
fromArrayToText()  : string
Convert array to text.
fromArrayToXml()  : string
Convert array to XML string.
fromBooleanToArray()  : array<string|int, mixed>
Convert boolean to array.
fromBooleanToBoolean()  : bool
Convert boolean to boolean.
fromBooleanToFloat()  : float
Convert a boolean to a float.
fromBooleanToHtml()  : string
Convert boolean to HTML string.
fromBooleanToImage()  : string
Convert boolean to image.
fromBooleanToInteger()  : int
Convert a boolean to an integer.
fromBooleanToJson()  : string
Convert boolean to JSON string.
fromBooleanToText()  : string
Convert boolean to text.
fromBooleanToXml()  : string
Convert boolean to XML string.
fromEmptyToArray()  : array<string|int, mixed>
Convert empty to array.
fromEmptyToBoolean()  : bool|null
Convert empty to boolean.
fromEmptyToFloat()  : float|null
Convert empty to float.
fromEmptyToHtml()  : string|null
Convert empty to HTML.
fromEmptyToImage()  : string|null
Convert empty to image.
fromEmptyToInteger()  : int|null
Convert empty to integer.
fromEmptyToJson()  : string|null
Convert empty to JSON.
fromEmptyToText()  : string|null
Convert empty to text.
fromEmptyToXml()  : null
Convert empty to XML.
fromFileToArray()  : array<string|int, mixed>
Convert file to array.
fromFileToBoolean()  : bool
Convert file to boolean.
fromFileToFloat()  : float
Convert a file to a float.
fromFileToHtml()  : string
Convert file to HTML string.
fromFileToImage()  : string
Convert file to image.
fromFileToInteger()  : int
Convert a file to an integer.
fromFileToJson()  : string
Convert file to JSON string.
fromFileToText()  : string
Convert file to text.
fromFileToXml()  : string
Convert file to XML string.
fromFloatToArray()  : array<string|int, mixed>
Convert float to array.
fromFloatToBoolean()  : bool
Convert float to boolean.
fromFloatToFloat()  : float
Convert a float to a float.
fromFloatToHtml()  : string
Convert float to HTML string.
fromFloatToImage()  : string
Convert float to image.
fromFloatToInteger()  : int
Convert a float to an integer.
fromFloatToJson()  : string
Convert float to JSON string.
fromFloatToText()  : string
Convert float to text.
fromFloatToXml()  : string
Convert float to XML string.
fromHtmlToArray()  : array<string|int, mixed>
Convert HTML to array.
fromHtmlToBoolean()  : bool
Convert HTML to boolean.
fromHtmlToFloat()  : float
Convert an HTML string to a float.
fromHtmlToHtml()  : string
Convert an HTML string to HTML string.
fromHtmlToImage()  : string
Convert HTML to image.
fromHtmlToInteger()  : int
Convert an HTML string to an integer.
fromHtmlToJson()  : string
Convert an HTML string to JSON string.
fromHtmlToText()  : string
Convert HTML to text.
fromHtmlToXml()  : string
Convert an HTML string to XML string.
fromImageToArray()  : array<string|int, mixed>
Convert image to array.
fromImageToBoolean()  : bool
Convert image to boolean.
fromImageToFloat()  : float
Convert an image to a float.
fromImageToHtml()  : string
Convert an image string to HTML string.
fromImageToImage()  : string
Convert image to image.
fromImageToInteger()  : int
Convert an image to an integer.
fromImageToJson()  : string
Convert an image string to JSON string.
fromImageToText()  : string
Convert image to text.
fromImageToXml()  : string
Convert an image string to XML string.
fromIntegerToArray()  : array<string|int, mixed>
Convert integer to array.
fromIntegerToBoolean()  : bool
Convert integer to boolean.
fromIntegerToFloat()  : float
Convert an integer to a float.
fromIntegerToHtml()  : string
Convert integer to HTML string.
fromIntegerToImage()  : string
Convert integer to image.
fromIntegerToInteger()  : int
Convert an integer to an integer.
fromIntegerToJson()  : string
Convert integer to JSON string.
fromIntegerToText()  : string
Convert integer to text.
fromIntegerToXml()  : string
Convert integer to XML string.
fromJsonToArray()  : array<string|int, mixed>
Convert JSON to array.
fromJsonToBoolean()  : bool
Convert JSON to boolean.
fromJsonToFloat()  : float
Convert a JSON string to a float.
fromJsonToHtml()  : string
Convert JSON string to HTML string.
fromJsonToImage()  : string
Convert JSON to image.
fromJsonToInteger()  : int
Convert a JSON string to an integer.
fromJsonToJson()  : string
Convert JSON string to JSON string.
fromJsonToText()  : string
Convert JSON to text.
fromJsonToXml()  : string
Convert JSON string to XML string.
fromTextToArray()  : array<string|int, mixed>
Convert text to array.
fromTextToBoolean()  : bool
Convert text to boolean.
fromTextToFloat()  : float
Convert text to a float.
fromTextToHtml()  : string
Convert text to HTML string.
fromTextToImage()  : string
Convert text to image.
fromTextToInteger()  : int
Convert text to an integer.
fromTextToJson()  : string
Convert text to JSON string.
fromTextToText()  : string
Convert text to text.
fromTextToXml()  : string
Convert text to XML string.
fromXmlToArray()  : array<string|int, mixed>
Convert XML to array.
fromXmlToBoolean()  : bool
Convert XML to boolean.
fromXmlToFloat()  : float
Convert an XML string to a float.
fromXmlToHtml()  : string
Convert HTML string to HTML string.
fromXmlToImage()  : string
Convert XML to image.
fromXmlToInteger()  : int
Convert an XML string to an integer.
fromXmlToJson()  : string
Convert XML string to JSON string.
fromXmlToText()  : string
Convert XML to text.
fromXmlToXml()  : string
Convert XML string to XML string.
getData()  : mixed
Get the data.
getType()  : string
Get the data type.
getTypes()  : array<string|int, mixed>
Fetch all possible data types.
isArray()  : bool
Validate a variable is an array.
isBool()  : bool
Validate a variable is boolean.
isEmpty()  : bool
Validate a variable is empty.
isFloat()  : bool
Validate a variable is float.
isHtml()  : bool
Validate a variable is HTML.
isInt()  : bool
Validate a variable is integer.
isJson()  : bool
Validate a variable is JSON.
isXml()  : bool
Validate a variable is XML.
setData()  : mixed
Set the data.
setType()  : mixed
Set the data type.
xml2json()  : array<string|int, mixed>
Convert an XML doc to JSON string.
array2xml()  : string
Recursive method to convert an array into XML format.
getBaseXmlWrapper()  : SimpleXMLElement
Get the base SimpleXMLElement wrapper for XML for converting non XML inputs to XML output.
wrapDataHtmlFormat()  : string
Wrap Data in HTML string wrapper.
wrapDataXmlFormat()  : string
Wrap Data in MML string wrapper.

Properties

$type

Data type.

private string $type = 'empty'

Default data type

$types

All data types.

private array<string|int, mixed> $types = ['boolean', 'integer', 'float', 'text', 'array', 'json', 'xml', 'html', 'image', 'file', 'empty']

Data types.

Methods

__construct()

DataContainer constructor.

public __construct(mixed $data[, string|null $dataType = null ]) : mixed
Parameters
$data : mixed

Data stored in the container.

$dataType : string|null = null

Data type.

Tags
throws
ApiException
Return values
mixed

detectType()

Detect the type of data that is input .

public detectType(mixed $data) : string
Parameters
$data : mixed

Data to test.

Return values
string

The data type.

fromArrayToArray()

Convert array to array.

public fromArrayToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromArrayToBoolean()

Convert array to boolean.

public fromArrayToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromArrayToFloat()

Convert an array to a float.

public fromArrayToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromArrayToHtml()

Convert array to HTML string.

public fromArrayToHtml( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromArrayToImage()

Convert array to image.

public fromArrayToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromArrayToInteger()

Convert a array to an integer.

public fromArrayToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromArrayToJson()

Convert array to JSON string.

public fromArrayToJson( $data) : string
Parameters
$data :
Return values
string

fromArrayToText()

Convert array to text.

public fromArrayToText( $data) : string
Parameters
$data :
Return values
string

fromArrayToXml()

Convert array to XML string.

public fromArrayToXml( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromBooleanToArray()

Convert boolean to array.

public fromBooleanToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromBooleanToBoolean()

Convert boolean to boolean.

public fromBooleanToBoolean( $data) : bool
Parameters
$data :
Return values
bool

fromBooleanToFloat()

Convert a boolean to a float.

public fromBooleanToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromBooleanToHtml()

Convert boolean to HTML string.

public fromBooleanToHtml( $data) : string
Parameters
$data :
Return values
string

fromBooleanToImage()

Convert boolean to image.

public fromBooleanToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromBooleanToInteger()

Convert a boolean to an integer.

public fromBooleanToInteger( $data) : int
Parameters
$data :
Return values
int

fromBooleanToJson()

Convert boolean to JSON string.

public fromBooleanToJson( $data) : string
Parameters
$data :
Return values
string

fromBooleanToText()

Convert boolean to text.

public fromBooleanToText( $data) : string
Parameters
$data :
Return values
string

fromBooleanToXml()

Convert boolean to XML string.

public fromBooleanToXml( $data) : string
Parameters
$data :
Return values
string

fromEmptyToArray()

Convert empty to array.

public fromEmptyToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromEmptyToBoolean()

Convert empty to boolean.

public fromEmptyToBoolean( $data) : bool|null
Parameters
$data :
Return values
bool|null

fromEmptyToFloat()

Convert empty to float.

public fromEmptyToFloat( $data) : float|null
Parameters
$data :
Return values
float|null

fromEmptyToHtml()

Convert empty to HTML.

public fromEmptyToHtml( $data) : string|null
Parameters
$data :
Return values
string|null

fromEmptyToImage()

Convert empty to image.

public fromEmptyToImage( $data) : string|null
Parameters
$data :
Return values
string|null

fromEmptyToInteger()

Convert empty to integer.

public fromEmptyToInteger( $data) : int|null
Parameters
$data :
Return values
int|null

fromEmptyToJson()

Convert empty to JSON.

public fromEmptyToJson( $data) : string|null
Parameters
$data :
Return values
string|null

fromEmptyToText()

Convert empty to text.

public fromEmptyToText( $data) : string|null
Parameters
$data :
Return values
string|null

fromEmptyToXml()

Convert empty to XML.

public fromEmptyToXml( $data) : null
Parameters
$data :
Return values
null

fromFileToArray()

Convert file to array.

public fromFileToArray( $data) : array<string|int, mixed>
Parameters
$data :
Tags
throws
ApiException
Return values
array<string|int, mixed>

fromFileToBoolean()

Convert file to boolean.

public fromFileToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromFileToFloat()

Convert a file to a float.

public fromFileToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromFileToHtml()

Convert file to HTML string.

public fromFileToHtml( $data) : string
Parameters
$data :
Return values
string

fromFileToImage()

Convert file to image.

public fromFileToImage( $data) : string
Parameters
$data :
Return values
string

fromFileToInteger()

Convert a file to an integer.

public fromFileToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromFileToJson()

Convert file to JSON string.

public fromFileToJson( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromFileToText()

Convert file to text.

public fromFileToText( $data) : string
Parameters
$data :
Return values
string

fromFileToXml()

Convert file to XML string.

public fromFileToXml( $data) : string
Parameters
$data :
Return values
string

fromFloatToArray()

Convert float to array.

public fromFloatToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromFloatToBoolean()

Convert float to boolean.

public fromFloatToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromFloatToFloat()

Convert a float to a float.

public fromFloatToFloat( $data) : float
Parameters
$data :
Return values
float

fromFloatToHtml()

Convert float to HTML string.

public fromFloatToHtml( $data) : string
Parameters
$data :
Return values
string

fromFloatToImage()

Convert float to image.

public fromFloatToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromFloatToInteger()

Convert a float to an integer.

public fromFloatToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromFloatToJson()

Convert float to JSON string.

public fromFloatToJson( $data) : string
Parameters
$data :
Return values
string

fromFloatToText()

Convert float to text.

public fromFloatToText( $data) : string
Parameters
$data :
Return values
string

fromFloatToXml()

Convert float to XML string.

public fromFloatToXml( $data) : string
Parameters
$data :
Return values
string

fromHtmlToArray()

Convert HTML to array.

public fromHtmlToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromHtmlToBoolean()

Convert HTML to boolean.

public fromHtmlToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromHtmlToFloat()

Convert an HTML string to a float.

public fromHtmlToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromHtmlToHtml()

Convert an HTML string to HTML string.

public fromHtmlToHtml( $data) : string
Parameters
$data :
Return values
string

fromHtmlToImage()

Convert HTML to image.

public fromHtmlToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromHtmlToInteger()

Convert an HTML string to an integer.

public fromHtmlToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromHtmlToJson()

Convert an HTML string to JSON string.

public fromHtmlToJson( $data) : string
Parameters
$data :
Return values
string

fromHtmlToText()

Convert HTML to text.

public fromHtmlToText( $data) : string
Parameters
$data :
Return values
string

fromHtmlToXml()

Convert an HTML string to XML string.

public fromHtmlToXml( $data) : string
Parameters
$data :
Return values
string

fromImageToArray()

Convert image to array.

public fromImageToArray( $data) : array<string|int, mixed>
Parameters
$data :
Tags
throws
ApiException
Return values
array<string|int, mixed>

fromImageToBoolean()

Convert image to boolean.

public fromImageToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromImageToFloat()

Convert an image to a float.

public fromImageToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromImageToHtml()

Convert an image string to HTML string.

public fromImageToHtml( $data) : string
Parameters
$data :
Return values
string

fromImageToImage()

Convert image to image.

public fromImageToImage( $data) : string
Parameters
$data :
Return values
string

fromImageToInteger()

Convert an image to an integer.

public fromImageToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromImageToJson()

Convert an image string to JSON string.

public fromImageToJson( $data) : string
Parameters
$data :
Return values
string

fromImageToText()

Convert image to text.

public fromImageToText( $data) : string
Parameters
$data :
Return values
string

fromImageToXml()

Convert an image string to XML string.

public fromImageToXml( $data) : string
Parameters
$data :
Return values
string

fromIntegerToArray()

Convert integer to array.

public fromIntegerToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromIntegerToBoolean()

Convert integer to boolean.

public fromIntegerToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromIntegerToFloat()

Convert an integer to a float.

public fromIntegerToFloat( $data) : float
Parameters
$data :
Return values
float

fromIntegerToHtml()

Convert integer to HTML string.

public fromIntegerToHtml( $data) : string
Parameters
$data :
Return values
string

fromIntegerToImage()

Convert integer to image.

public fromIntegerToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromIntegerToInteger()

Convert an integer to an integer.

public fromIntegerToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromIntegerToJson()

Convert integer to JSON string.

public fromIntegerToJson( $data) : string
Parameters
$data :
Return values
string

fromIntegerToText()

Convert integer to text.

public fromIntegerToText( $data) : string
Parameters
$data :
Return values
string

fromIntegerToXml()

Convert integer to XML string.

public fromIntegerToXml( $data) : string
Parameters
$data :
Return values
string

fromJsonToArray()

Convert JSON to array.

public fromJsonToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromJsonToBoolean()

Convert JSON to boolean.

public fromJsonToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromJsonToFloat()

Convert a JSON string to a float.

public fromJsonToFloat( $data) : float
Parameters
$data :
Return values
float

fromJsonToHtml()

Convert JSON string to HTML string.

public fromJsonToHtml( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromJsonToImage()

Convert JSON to image.

public fromJsonToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromJsonToInteger()

Convert a JSON string to an integer.

public fromJsonToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromJsonToJson()

Convert JSON string to JSON string.

public fromJsonToJson( $data) : string
Parameters
$data :
Return values
string

fromJsonToText()

Convert JSON to text.

public fromJsonToText( $data) : string
Parameters
$data :
Return values
string

fromJsonToXml()

Convert JSON string to XML string.

public fromJsonToXml( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromTextToArray()

Convert text to array.

public fromTextToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromTextToBoolean()

Convert text to boolean.

public fromTextToBoolean( $data) : bool
Parameters
$data :
Tags
throws
ApiException
Return values
bool

fromTextToFloat()

Convert text to a float.

public fromTextToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromTextToHtml()

Convert text to HTML string.

public fromTextToHtml( $data) : string
Parameters
$data :
Return values
string

fromTextToImage()

Convert text to image.

public fromTextToImage( $data) : string
Parameters
$data :
Return values
string

fromTextToInteger()

Convert text to an integer.

public fromTextToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromTextToJson()

Convert text to JSON string.

public fromTextToJson( $data) : string
Parameters
$data :
Return values
string

fromTextToText()

Convert text to text.

public fromTextToText( $data) : string
Parameters
$data :
Return values
string

fromTextToXml()

Convert text to XML string.

public fromTextToXml( $data) : string
Parameters
$data :
Return values
string

fromXmlToArray()

Convert XML to array.

public fromXmlToArray( $data) : array<string|int, mixed>
Parameters
$data :
Return values
array<string|int, mixed>

fromXmlToFloat()

Convert an XML string to a float.

public fromXmlToFloat( $data) : float
Parameters
$data :
Tags
throws
ApiException
Return values
float

fromXmlToHtml()

Convert HTML string to HTML string.

public fromXmlToHtml( $data) : string
Parameters
$data :
Return values
string

fromXmlToImage()

Convert XML to image.

public fromXmlToImage( $data) : string
Parameters
$data :
Tags
throws
ApiException
Return values
string

fromXmlToInteger()

Convert an XML string to an integer.

public fromXmlToInteger( $data) : int
Parameters
$data :
Tags
throws
ApiException
Return values
int

fromXmlToJson()

Convert XML string to JSON string.

public fromXmlToJson( $data) : string
Parameters
$data :
Return values
string

fromXmlToText()

Convert XML to text.

public fromXmlToText( $data) : string
Parameters
$data :
Return values
string

fromXmlToXml()

Convert XML string to XML string.

public fromXmlToXml( $data) : string
Parameters
$data :
Return values
string

getData()

Get the data.

public getData() : mixed
Return values
mixed

getType()

Get the data type.

public getType() : string
Return values
string

getTypes()

Fetch all possible data types.

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

isArray()

Validate a variable is an array.

public isArray(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isBool()

Validate a variable is boolean.

public isBool(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isEmpty()

Validate a variable is empty.

public isEmpty(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isFloat()

Validate a variable is float.

public isFloat(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isHtml()

Validate a variable is HTML.

public isHtml(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isInt()

Validate a variable is integer.

public isInt(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isJson()

Validate a variable is JSON.

public isJson(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

isXml()

Validate a variable is XML.

public isXml(mixed $var) : bool
Parameters
$var : mixed

Variable to test.

Return values
bool

setData()

Set the data.

public setData(mixed $data) : mixed
Parameters
$data : mixed

Data.

Return values
mixed

setType()

Set the data type.

public setType(string $type) : mixed

This will also cast the data to the new type.

Parameters
$type : string

Data type.

Tags
throws
ApiException
Return values
mixed

xml2json()

Convert an XML doc to JSON string.

public xml2json(SimpleXMLElement &$xml) : array<string|int, mixed>
Parameters
$xml : SimpleXMLElement

XML element.

Return values
array<string|int, mixed>

array2xml()

Recursive method to convert an array into XML format.

protected array2xml(array<string|int, mixed> $array, SimpleXMLElement $xml) : string
Parameters
$array : array<string|int, mixed>

Input array.

$xml : SimpleXMLElement

A SimpleXMLElement element.

Return values
string

A populated SimpleXMLElement.

getBaseXmlWrapper()

Get the base SimpleXMLElement wrapper for XML for converting non XML inputs to XML output.

protected getBaseXmlWrapper() : SimpleXMLElement
Tags
throws
ApiException
Return values
SimpleXMLElement

wrapDataHtmlFormat()

Wrap Data in HTML string wrapper.

protected wrapDataHtmlFormat( $data) : string
Parameters
$data :
Return values
string

wrapDataXmlFormat()

Wrap Data in MML string wrapper.

protected wrapDataXmlFormat( $data) : string
Parameters
$data :
Return values
string

Search results