PHP 클래스 XmlDeserializer, googleads-php-lib

파일 보기 프로젝트 열기: googleads/googleads-php-lib 1 사용 예제들

공개 메소드들

메소드 설명
ConvertXmlToObject ( string $xml ) : mixed Converts an XML representation to objects of proper classes using many types of information, e.g., the xsi:type attribute.
__construct ( array $classmap ) Creates a new XML deserializer using the specified classmap, which provides information about the hand-written PHP stubs for the types defined outside WSDLs.

비공개 메소드들

메소드 설명
ConvertElementToObject ( DOMElement $element, string $className = null ) : mixed Converts a DOMElement to an object of appropriate class where each child element is converted to be a class property.
ConvertNodeValueToObject ( string $value ) : mixed Converts a node value to a PHP value of the appropriate type.
GetTypeHint ( string $className, string $propertyName ) : null | string Determines the type hint of the specified property of the given class.
GetTypeReflectionClass ( DOMElement $element, string $className = null ) : null | ReflectionClass Gets a relevant RefelectionClass object of the specified DOMElement object.

메소드 상세

ConvertXmlToObject() 공개 메소드

Converts an XML representation to objects of proper classes using many types of information, e.g., the xsi:type attribute.
public ConvertXmlToObject ( string $xml ) : mixed
$xml string the XML representation to be deserialized
리턴 mixed the converted object

__construct() 공개 메소드

Creates a new XML deserializer using the specified classmap, which provides information about the hand-written PHP stubs for the types defined outside WSDLs.
public __construct ( array $classmap )
$classmap array a mapping from XML tag names and element names in XSD to PHP classes. It helps include the hand-written PHP stubs for the types defined outside WSDLs.