PHP 클래스 Box\Spout\Reader\Wrapper\SimpleXMLElement

.. Instead, it is used as a passthrough.
또한 보기: SimpleXMLElement
상속: use trait Box\Spout\Reader\Wrapper\XMLInternalErrorsHelper
파일 보기 프로젝트 열기: box/spout 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$simpleXMLElement Instance of the wrapped SimpleXMLElement object

공개 메소드들

메소드 설명
__construct ( string $xmlData ) Creates a new SimpleXMLElement object
__toString ( ) : string
getAttribute ( string $name, string | null | void $namespace = null ) : string | null Returns the attribute for the given name.
getFirstChildByTagName ( string $tagName ) : SimpleXMLElement | null Returns the first child matching the given tag name
registerXPathNamespace ( string $prefix, string $namespace ) : boolean Creates a prefix/ns context for the next XPath query
removeNodesMatchingXPath ( string $path ) : void Remove all nodes matching the given XPath query.
xpath ( string $path ) : SimpleXMLElement[] | boolean Runs XPath query on XML data

보호된 메소드들

메소드 설명
wrapSimpleXMLElement ( SimpleXMLElement $element ) : SimpleXMLElement | null Wraps the given element into an instance of the wrapper

메소드 상세

__construct() 공개 메소드

Creates a new SimpleXMLElement object
또한 보기: SimpleXMLElement::__construct
public __construct ( string $xmlData )
$xmlData string A well-formed XML string

__toString() 공개 메소드

public __toString ( ) : string
리턴 string

getAttribute() 공개 메소드

Returns the attribute for the given name.
public getAttribute ( string $name, string | null | void $namespace = null ) : string | null
$name string Attribute name
$namespace string | null | void An optional namespace for the retrieved attributes
리턴 string | null The attribute value or NULL if attribute not found

getFirstChildByTagName() 공개 메소드

Returns the first child matching the given tag name
public getFirstChildByTagName ( string $tagName ) : SimpleXMLElement | null
$tagName string
리턴 SimpleXMLElement | null The first child matching the tag name or NULL if none found

registerXPathNamespace() 공개 메소드

Creates a prefix/ns context for the next XPath query
또한 보기: SimpleXMLElement::registerXPathNamespace
public registerXPathNamespace ( string $prefix, string $namespace ) : boolean
$prefix string The namespace prefix to use in the XPath query for the namespace given in "namespace".
$namespace string The namespace to use for the XPath query. This must match a namespace in use by the XML document or the XPath query using "prefix" will not return any results.
리턴 boolean TRUE on success or FALSE on failure.

removeNodesMatchingXPath() 공개 메소드

It does not map to any \SimpleXMLElement function.
public removeNodesMatchingXPath ( string $path ) : void
$path string An XPath path
리턴 void

wrapSimpleXMLElement() 보호된 메소드

Wraps the given element into an instance of the wrapper
protected wrapSimpleXMLElement ( SimpleXMLElement $element ) : SimpleXMLElement | null
$element SimpleXMLElement Element to be wrapped
리턴 SimpleXMLElement | null The wrapped element or NULL if the given element is invalid

xpath() 공개 메소드

Runs XPath query on XML data
또한 보기: SimpleXMLElement::xpath
public xpath ( string $path ) : SimpleXMLElement[] | boolean
$path string An XPath path
리턴 SimpleXMLElement[] | boolean an array of SimpleXMLElement objects or FALSE in case of an error.

프로퍼티 상세

$simpleXMLElement 보호되어 있는 프로퍼티

Instance of the wrapped SimpleXMLElement object
protected $simpleXMLElement