프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$_dataStack | array | stack for all data that is found | |
$_defaultOptions | array | default options for the serialization | |
$_depth | integer | current tag depth | |
$_knownOptions | array | list of all available options | |
$_parser | XML_Parser instance | ||
$_root | string | name of the root tag | |
$_unserializedData | string | unserialized data | |
$_valStack | array | stack for all values that are generated | |
$options | array | current options for the serialization |
메소드 | 설명 | |
---|---|---|
XML_Unserializer ( mixed $options = null ) | constructor | |
_createParser ( ) : boolean | create the XML_Parser instance | |
_getComplexType ( string $tagname ) : string | get the complex type, that should be used for a specified tag | |
_guessAndSetType ( string $value ) : mixed | Try to guess the type of a value and set it accordingly | |
_guessAndSetTypes ( array $array ) : array | Try to guess the type of several values and set them accordingly | |
apiVersion ( ) : string | return API version | |
cdataHandler ( object $parser, string $cdata ) : void | Handler for character data | |
endHandler ( object $parser, string $element ) : void | End element handler for XML parser | |
getRootName ( ) : string | get the name of the root tag | |
getUnserializedData ( ) : string | get the result of the serialization | |
resetOptions ( ) : void | reset all options to default options | |
setOption ( string $name, mixed $value ) : void | set an option | |
setOptions ( array $options ) : void | sets several options at once | |
startHandler ( object $parser, string $element, array $attribs ) : void | Start element handler for XML parser | |
unserialize ( mixed $data, boolean $isFile = false, array $options = null ) : boolean | unserialize data |
public XML_Unserializer ( mixed $options = null ) | ||
$options | mixed | array containing options for the unserialization |
public _getComplexType ( string $tagname ) : string | ||
$tagname | string | name of the tag |
리턴 | string | complex type ('array' or 'object') |
public _guessAndSetType ( string $value ) : mixed | ||
$value | string | character data |
리턴 | mixed | value with the best matching type |
public _guessAndSetTypes ( array $array ) : array | ||
$array | array | array containing the values |
리턴 | array | array, containing the values with their correct types |
public apiVersion ( ) : string | ||
리턴 | string | $version API version |
public getRootName ( ) : string | ||
리턴 | string | $rootName |
public getUnserializedData ( ) : string | ||
리턴 | string | $serializedData |
public setOptions ( array $options ) : void | ||
$options | array | options array |
리턴 | void |
public array $_defaultOptions | ||
리턴 | array |