private function getRecordHeaderNode(Header $header)
    {
        $headerNode = $this->response->createElement('header');
        $headerNode->appendChild($this->response->createElement('identifier', $header->getIdentifier()));
        $headerNode->appendChild(
            $this->response->createElement('datestamp', $this->toUtcDateTime($header->getDatestamp()))
        );
        foreach ($header->getSetSpecs() as $setSpec) {
            $headerNode->appendChild($this->response->createElement('setSpec', $setSpec));
        }
        if ($header->isDeleted()) {
            $headerNode->setAttribute("status", "deleted");
        }
        return $headerNode;
    }
private function getRecordHeaderNode(Header $header)
    {
        $headerNode = $this->response->createElement('header');
        $headerNode->appendChild($this->response->createElement('identifier', $header->getIdentifier()));
        $headerNode->appendChild(
            $this->response->createElement('datestamp', $this->toUtcDateTime($header->getDatestamp()))
        );
        foreach ($header->getSetSpecs() as $setSpec) {
            $headerNode->appendChild($this->response->createElement('setSpec', $setSpec));
        }
        if ($header->isDeleted()) {
            $headerNode->setAttribute("status", "deleted");
        }
        return $headerNode;
    }
private function getRecordHeaderNode ( Header $ header ) { $ headerNode = $ this -> response -> createElement ( 'header' ) ; $ headerNode -> appendChild ( $ this -> response -> createElement ( 'identifier' , $ header -> getIdentifier ( ) ) ) ; $ headerNode -> appendChild ( $ this -> response -> createElement ( 'datestamp' , $ this -> toUtcDateTime ( $ header -> getDatestamp ( ) ) ) ) ; foreach ( $ header -> getSetSpecs ( ) as $ setSpec ) { $ headerNode -> appendChild ( $ this -> response -> createElement ( 'setSpec' , $ setSpec ) ) ; } if ( $ header -> isDeleted ( ) ) { $ headerNode -> setAttribute ( "status" , "deleted" ) ; } return $ headerNode ; }
Converts the header of a record to a header node, used for both ListRecords and ListIdentifiers
@param Header $header
@return \DOMElement
Converts the header of a record to a header node used for both ListRecords and ListIdentifiers