PHP 클래스 Jackalope\ImportExport\ImportExport

Implements the uuid behavior interface to import the constants.
저자: David Buchmann ([email protected])
상속: implements PHPCR\ImportUUIDBehaviorInterface
파일 보기 프로젝트 열기: jackalope/jackalope 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$escaping array Map of invalid xml names to escaping according to jcr/phpcr spec TODO: more invalid characters?

공개 메소드들

메소드 설명
escapeXmlName ( string $name ) : string Helper method for escaping node and property names into valid xml element and attribute names according to the jcr specification.
exportDocumentView ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse ) Recursively export data to an xml stream in document view format
exportSystemView ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse ) Recursively export data to an xml stream.
importXML ( PHPCR\NodeInterface $parentNode, PHPCR\NamespaceRegistryInterface $ns, string $uri, integer $uuidBehavior ) Import the xml document from the stream into the repository
unescapeXmlName ( string $name, array $namespaceMap ) : string Helper method to unescape node names that encoded invalid things for xml. At the same time, change document namespace prefix to repository prefix if needed.

비공개 메소드들

메소드 설명
addNode ( PHPCR\NodeInterface $parentNode, string $nodename, string $type, array $properties, integer $uuidBehavior ) : PHPCR\NodeInterface Helper method for importing to add a node with the proper uuid behavior
cleanNamespace ( string $name, array $namespaceMap ) : string Helper function for importing to ensure prefix is same as in repository
exportDocumentViewRecursive ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse, boolean $root = false ) Recursively output node and all its children into the file in the document view format
exportNamespaceDeclarations ( PHPCR\NamespaceRegistryInterface $ns, resource $stream ) Helper method to produce the xmlns:.
exportSystemViewRecursive ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse, boolean $root = false ) Recursively output node and all its children into the file in the system view format
importDocumentView ( PHPCR\NodeInterface $parentNode, PHPCR\NamespaceRegistryInterface $ns, FilteredXMLReader $xml, integer $uuidBehavior, array $namespaceMap = [] ) Import document in system view
importSystemView ( PHPCR\NodeInterface $parentNode, PHPCR\NamespaceRegistryInterface $ns, FilteredXMLReader $xml, integer $uuidBehavior, array $namespaceMap = [] ) Import document in system view

메소드 상세

escapeXmlName() 공개 정적인 메소드

Helper method for escaping node and property names into valid xml element and attribute names according to the jcr specification.
public static escapeXmlName ( string $name ) : string
$name string A name possibly containing characters illegal in an XML document.
리턴 string The name encoded to be valid xml

exportDocumentView() 공개 정적인 메소드

Recursively export data to an xml stream in document view format
또한 보기: SessionInterface::exportDocumentView
public static exportDocumentView ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse )
$node PHPCR\NodeInterface The node to start exporting at
$ns PHPCR\NamespaceRegistryInterface The namespace registry to export namespaces too
$stream resource as in exportDocumentView
$skipBinary boolean as in exportDocumentView
$noRecurse boolean as in exportDocumentView

exportSystemView() 공개 정적인 메소드

Recursively export data to an xml stream.
또한 보기: SessionInterface::exportSystemView
public static exportSystemView ( PHPCR\NodeInterface $node, PHPCR\NamespaceRegistryInterface $ns, resource $stream, boolean $skipBinary, boolean $noRecurse )
$node PHPCR\NodeInterface The node to start exporting at
$ns PHPCR\NamespaceRegistryInterface The namespace registry to export namespaces too
$stream resource as in exportSystemView
$skipBinary boolean as in exportSystemView
$noRecurse boolean as in exportSystemView

importXML() 공개 정적인 메소드

Import the xml document from the stream into the repository
또한 보기: SessionInterface::importXML
public static importXML ( PHPCR\NodeInterface $parentNode, PHPCR\NamespaceRegistryInterface $ns, string $uri, integer $uuidBehavior )
$parentNode PHPCR\NodeInterface as in importXML
$ns PHPCR\NamespaceRegistryInterface as in importXML
$uri string as in importXML
$uuidBehavior integer as in importXML

unescapeXmlName() 공개 정적인 메소드

Helper method to unescape node names that encoded invalid things for xml. At the same time, change document namespace prefix to repository prefix if needed.
public static unescapeXmlName ( string $name, array $namespaceMap ) : string
$name string A name encoded with escapeXmlName
$namespaceMap array
리턴 string the decoded name

프로퍼티 상세

$escaping 공개적으로 정적으로 프로퍼티

Map of invalid xml names to escaping according to jcr/phpcr spec TODO: more invalid characters?
public static array $escaping
리턴 array