Jackalope\Transport\Jackrabbit\Client::buildPropfindRequest PHP 메소드

buildPropfindRequest() 보호된 메소드

Build PROPFIND request XML for the specified property names
protected buildPropfindRequest ( array $properties ) : string
$properties array names of the properties to search for
리턴 string XML to post in the body
    protected function buildPropfindRequest($properties)
    {
        $xml = '<?xml version="1.0" encoding="UTF-8"?>' . '<D:propfind xmlns:D="DAV:" xmlns:dcr="http://www.day.com/jcr/webdav/1.0"><D:prop>';
        if (!is_array($properties)) {
            $properties = array($properties);
        }
        foreach ($properties as $property) {
            $xml .= '<' . $property . '/>';
        }
        $xml .= '</D:prop></D:propfind>';
        return $xml;
    }