protected function createAccessDOMElement( DOMDocument $domDocument, eZContentObjectTreeNode $node )
    {
        $accessElement = $domDocument->createElement( 'AccessRights' );
        $accessElement->setAttribute( 'canRead', $node->attribute( 'can_read' ) ? '1' : '0' );
        $accessElement->setAttribute( 'canEdit', $node->attribute( 'can_edit' ) ? '1' : '0' );
        $accessElement->setAttribute( 'canCreate', $node->attribute( 'can_create' ) ? '1' : '0' );
        return $accessElement;
    }
protected function createAccessDOMElement( DOMDocument $domDocument, eZContentObjectTreeNode $node )
    {
        $accessElement = $domDocument->createElement( 'AccessRights' );
        $accessElement->setAttribute( 'canRead', $node->attribute( 'can_read' ) ? '1' : '0' );
        $accessElement->setAttribute( 'canEdit', $node->attribute( 'can_edit' ) ? '1' : '0' );
        $accessElement->setAttribute( 'canCreate', $node->attribute( 'can_create' ) ? '1' : '0' );
        return $accessElement;
    }
protected function createAccessDOMElement ( DOMDocument $ domDocument , eZContentObjectTreeNode $ node ) { $ accessElement = $ domDocument -> createElement ( 'AccessRights' ) ; $ accessElement -> setAttribute ( 'canRead' , $ node -> attribute ( 'can_read' ) ? '1' : '0' ) ; $ accessElement -> setAttribute ( 'canEdit' , $ node -> attribute ( 'can_edit' ) ? '1' : '0' ) ; $ accessElement -> setAttribute ( 'canCreate' , $ node -> attribute ( 'can_create' ) ? '1' : '0' ) ; return $ accessElement ; }
Create Access element.

@param DOMDocument Owner DOMDocument
@param eZContentObjectTreeNode eZContentObjectTreeNode object.

@return DOMElement AccessRights DOMDocument, example:
<AccessRights canRead="1" canCreate="1" canEdit="0" />
Create Access element .