public function serializeContentClassAttribute( $classAttribute, $attributeNode, $attributeParametersNode )
    {
        $dom = $attributeParametersNode->ownerDocument;

        $subTreeLimit = (string) $classAttribute->attribute( self::SUBTREE_LIMIT_FIELD );
        $domNode = $dom->createElement( 'subtree-limit' );
        $domNode->appendChild( $dom->createTextNode( $subTreeLimit ) );
        $attributeParametersNode->appendChild( $domNode );

        $maxTags = (string) $classAttribute->attribute( self::MAX_TAGS_FIELD );
        $domNode = $dom->createElement( 'max-tags' );
        $domNode->appendChild( $dom->createTextNode( $maxTags ) );
        $attributeParametersNode->appendChild( $domNode );

        $hideRootTag = ( (int) $classAttribute->attribute( self::HIDE_ROOT_TAG_FIELD ) ) > 0 ? 'true' : 'false';
        $domNode = $dom->createElement( 'hide-root-tag' );
        $domNode->appendChild( $dom->createTextNode( $hideRootTag ) );
        $attributeParametersNode->appendChild( $domNode );

        $editView = (string) $classAttribute->attribute( self::EDIT_VIEW_FIELD );
        $domNode = $dom->createElement( 'edit-view' );
        $domNode->appendChild( $dom->createTextNode( $editView ) );
        $attributeParametersNode->appendChild( $domNode );
    }
public function serializeContentClassAttribute( $classAttribute, $attributeNode, $attributeParametersNode )
    {
        $dom = $attributeParametersNode->ownerDocument;

        $subTreeLimit = (string) $classAttribute->attribute( self::SUBTREE_LIMIT_FIELD );
        $domNode = $dom->createElement( 'subtree-limit' );
        $domNode->appendChild( $dom->createTextNode( $subTreeLimit ) );
        $attributeParametersNode->appendChild( $domNode );

        $maxTags = (string) $classAttribute->attribute( self::MAX_TAGS_FIELD );
        $domNode = $dom->createElement( 'max-tags' );
        $domNode->appendChild( $dom->createTextNode( $maxTags ) );
        $attributeParametersNode->appendChild( $domNode );

        $hideRootTag = ( (int) $classAttribute->attribute( self::HIDE_ROOT_TAG_FIELD ) ) > 0 ? 'true' : 'false';
        $domNode = $dom->createElement( 'hide-root-tag' );
        $domNode->appendChild( $dom->createTextNode( $hideRootTag ) );
        $attributeParametersNode->appendChild( $domNode );

        $editView = (string) $classAttribute->attribute( self::EDIT_VIEW_FIELD );
        $domNode = $dom->createElement( 'edit-view' );
        $domNode->appendChild( $dom->createTextNode( $editView ) );
        $attributeParametersNode->appendChild( $domNode );
    }
public function serializeContentClassAttribute ( $ classAttribute , $ attributeNode , $ attributeParametersNode ) { $ dom = $ attributeParametersNode -> ownerDocument ; $ subTreeLimit = ( string ) $ classAttribute -> attribute ( self :: SUBTREE_LIMIT_FIELD ) ; $ domNode = $ dom -> createElement ( 'subtree-limit' ) ; $ domNode -> appendChild ( $ dom -> createTextNode ( $ subTreeLimit ) ) ; $ attributeParametersNode -> appendChild ( $ domNode ) ; $ maxTags = ( string ) $ classAttribute -> attribute ( self :: MAX_TAGS_FIELD ) ; $ domNode = $ dom -> createElement ( 'max-tags' ) ; $ domNode -> appendChild ( $ dom -> createTextNode ( $ maxTags ) ) ; $ attributeParametersNode -> appendChild ( $ domNode ) ; $ hideRootTag = ( ( int ) $ classAttribute -> attribute ( self :: HIDE_ROOT_TAG_FIELD ) ) > 0 ? 'true' : 'false' ; $ domNode = $ dom -> createElement ( 'hide-root-tag' ) ; $ domNode -> appendChild ( $ dom -> createTextNode ( $ hideRootTag ) ) ; $ attributeParametersNode -> appendChild ( $ domNode ) ; $ editView = ( string ) $ classAttribute -> attribute ( self :: EDIT_VIEW_FIELD ) ; $ domNode = $ dom -> createElement ( 'edit-view' ) ; $ domNode -> appendChild ( $ dom -> createTextNode ( $ editView ) ) ; $ attributeParametersNode -> appendChild ( $ domNode ) ; }
Adds the necessary DOM structure to the attribute parameters

@param eZContentClassAttribute $classAttribute
@param DOMNode $attributeNode
@param DOMNode $attributeParametersNode
Adds the necessary DOM structure to the attribute parameters