PHP 클래스 eZ\Publish\Core\FieldType\RichText\XmlBase

파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel

보호된 프로퍼티들

프로퍼티 타입 설명
$errorTypes array Textual mapping for libxml error type constants.
$useInternalErrors null | boolean When recording errors holds previous setting for libxml user error handling, null otherwise.

보호된 메소드들

메소드 설명
collectErrors ( ) : string[] Returns formatted errors from libxml error buffer and restores previous setting for libxml error handling.
formatLibXmlError ( LibXMLError $error ) : string Formats libxml error object as a string.
loadFile ( string $path ) : DOMDocument Returns DOMDocument object loaded from given XML file $path.
startRecordingErrors ( ) Enables user handling of libxml errors and clears error buffer.

메소드 상세

collectErrors() 보호된 메소드

Before calling this method error recording must be started by calling {@link startRecordingErrors()}.
또한 보기: startRecordingErrors()
protected collectErrors ( ) : string[]
리턴 string[]

formatLibXmlError() 보호된 메소드

Example: Error in 6:0: Expecting an element title, got nothing
protected formatLibXmlError ( LibXMLError $error ) : string
$error LibXMLError
리턴 string

loadFile() 보호된 메소드

Returns DOMDocument object loaded from given XML file $path.
protected loadFile ( string $path ) : DOMDocument
$path string
리턴 DOMDocument

startRecordingErrors() 보호된 메소드

Previous setting for libxml error handling is remembered. This method is intended to be used together with {@link collectErrors()}.
protected startRecordingErrors ( )

프로퍼티 상세

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

Textual mapping for libxml error type constants.
protected array $errorTypes
리턴 array

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

When recording errors holds previous setting for libxml user error handling, null otherwise.
protected null|bool $useInternalErrors
리턴 null | boolean