\XgapVarConvertXmlDecodeParser

Clase auxiliar para XgapVarConvertXml.

Summary

Methods
Properties
Constants
__construct()
hasError()
getErrorMessage()
getResult()
startElementHandler()
check_double()
endElementHandler()
characterDataHandler()
No public properties found
No constants found
setError()
fail()
errorUnexpectedElement()
errorAttribs()
errorEmptyElem()
errorValAttrib()
check_int()
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

__construct()

__construct() 

hasError()

hasError() : boolean

Returns

boolean

getErrorMessage()

getErrorMessage() : string

Returns

string

getResult()

getResult() : mixed

Returns

mixed

startElementHandler()

startElementHandler(resource  $parser, string  $name, array  $attribs) 

Parameters

resource $parser
string $name
array $attribs

check_double()

check_double(string  $string) : boolean

Parameters

string $string

Returns

boolean —

TRUE si $string es un número de punto flotante válido sin caracteres extra, excepto posiblemente blancos antes o después

endElementHandler()

endElementHandler(resource  $parser, string  $name) 

Parameters

resource $parser
string $name

characterDataHandler()

characterDataHandler(resource  $parser, string  $data) 

Parameters

resource $parser
string $data

setError()

setError(string  $message) 

Parameters

string $message

fail()

fail(string  $message) 

Parameters

string $message

Throws

\DomainException

errorUnexpectedElement()

errorUnexpectedElement(string  $name) : string

Parameters

string $name

Returns

string

errorAttribs()

errorAttribs(array  $expected, array  $actual,   $elem) : string

Parameters

array $expected
array $actual
$elem

Returns

string

errorEmptyElem()

errorEmptyElem(  $elem) 

Parameters

$elem

errorValAttrib()

errorValAttrib(string  $name,   $elem_name, array  $expected, string  $actual) : string

Parameters

string $name
$elem_name
array $expected
string $actual

Returns

string

check_int()

check_int(string  $string) : boolean

Parameters

string $string

Returns

boolean —

TRUE si $string es un entero válido (decimal, octal o hexadecimal) sin caracteres extra, excepto posiblemente blancos antes o después