PHP 클래스 Horde_Kolab_Format_Xml, horde
For implementing a new format type you will have to inherit this
class and provide a _load/_save function.
Copyright 2007-2009 Klarälvdalens Datakonsult AB
Copyright 2010-2014 Horde LLC (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not
receive this file, see
http://www.horde.org/licenses/lgpl21.
파일 보기
프로젝트 열기: horde/horde
1 사용 예제들
보호된 프로퍼티들
공개 메소드들
메소드 |
설명 |
|
__construct ( Horde_Kolab_Format_Xml_Parser $parser, Horde_Kolab_Format_Factory $factory, array $params = null ) |
Constructor |
|
getVersion ( ) : integer |
Return the API version of the data structures that are being used for in-
and output. |
|
load ( resource $xml, array $options = [] ) : array |
Load an object based on the given XML stream. The stream may only contain
UTF-8 data. |
|
save ( array $object, array $options = [] ) : string |
Convert the data to a XML stream. Strings contained in the data array may
only be provided as UTF-8 data. |
|
비공개 메소드들
메소드 상세
public __construct ( Horde_Kolab_Format_Xml_Parser $parser, Horde_Kolab_Format_Factory $factory, array $params = null ) |
$parser |
Horde_Kolab_Format_Xml_Parser |
The XML parser. |
$factory |
Horde_Kolab_Format_Factory |
The factory for helper
objects. |
$params |
array |
Any additional options. |
Return the API version of the data structures that are being used for in-
and output.
Load an object based on the given XML stream. The stream may only contain
UTF-8 data.
public load ( resource $xml, array $options = [] ) : array |
$xml |
resource |
The XML stream of the message. |
$options |
array |
Additional options when parsing the XML.
- relaxed: Relaxed error checking (default: false)
|
리턴 |
array |
The data array representing the object. |
Convert the data to a XML stream. Strings contained in the data array may
only be provided as UTF-8 data.
public save ( array $object, array $options = [] ) : string |
$object |
array |
The data array representing the object. |
$options |
array |
Additional options when writing the XML.
- previous: The previous XML text (default: empty string)
- relaxed: Relaxed error checking (default: false)
|
리턴 |
string |
The data as an XML string. |
프로퍼티 상세
The factory for additional objects.
protected Horde_Kolab_Format_Factory $_factory |
리턴 |
Horde_Kolab_Format_Factory |
|
$_fields_specific 보호되어 있는 프로퍼티
Specific data fields for the contact object
protected array $_fields_specific |
리턴 |
array |
|
The parser dealing with the input.
protected Horde_Kolab_Format_Xml_Parser $_parser |
리턴 |
Horde_Kolab_Format_Xml_Parser |
|
The name of the root element.
protected string $_root_name |
리턴 |
string |
|
$_root_version 보호되어 있는 프로퍼티
Kolab format version of the root element.
protected string $_root_version |
리턴 |
string |
|
Requested version of the data array to return
The XML document this driver works with.
protected DOMDocument $_xmldoc |
리턴 |
DOMDocument |
|