public function ezodfGetTopNodeList( $getParams, $getOptions, $postParams, $postOptions )
    {
        $domDocument = new DOMDocument( '1.0', 'utf-8' );
        $nodeListElement = $domDocument->createElement( 'TopNodeList' );

        $contentINI = eZINI::instance( 'content.ini' );
        $odfINI = eZINI::instance( 'odf.ini' );

        $elementCount = 0;

        foreach( $odfINI->variable( 'OOMenuSettings', 'TopNodeNameList' ) as $topNodeName )
        {
            $nodeID = $contentINI->variable( 'NodeSettings', $topNodeName );
            $node = eZContentObjectTreeNode::fetch( $nodeID );
            if ( !$node )
            {
                throw new Exception( 'Could not fetch node: "' . $topNodeName . '", ID: ', $nodeID );
            }
            $nodeListElement->appendChild( $this->createTreeNodeDOMElement( $domDocument, $node ) );
            $elementCount++;
        }

        $nodeListElement->setAttribute( 'count', $elementCount );

        return $nodeListElement;
    }
public function ezodfGetTopNodeList( $getParams, $getOptions, $postParams, $postOptions )
    {
        $domDocument = new DOMDocument( '1.0', 'utf-8' );
        $nodeListElement = $domDocument->createElement( 'TopNodeList' );

        $contentINI = eZINI::instance( 'content.ini' );
        $odfINI = eZINI::instance( 'odf.ini' );

        $elementCount = 0;

        foreach( $odfINI->variable( 'OOMenuSettings', 'TopNodeNameList' ) as $topNodeName )
        {
            $nodeID = $contentINI->variable( 'NodeSettings', $topNodeName );
            $node = eZContentObjectTreeNode::fetch( $nodeID );
            if ( !$node )
            {
                throw new Exception( 'Could not fetch node: "' . $topNodeName . '", ID: ', $nodeID );
            }
            $nodeListElement->appendChild( $this->createTreeNodeDOMElement( $domDocument, $node ) );
            $elementCount++;
        }

        $nodeListElement->setAttribute( 'count', $elementCount );

        return $nodeListElement;
    }
public function ezodfGetTopNodeList ( $ getParams , $ getOptions , $ postParams , $ postOptions ) { $ domDocument = new DOMDocument ( '1.0' , 'utf-8' ) ; $ nodeListElement = $ domDocument -> createElement ( 'TopNodeList' ) ; $ contentINI = eZINI :: instance ( 'content.ini' ) ; $ odfINI = eZINI :: instance ( 'odf.ini' ) ; $ elementCount = 0 ; foreach ( $ odfINI -> variable ( 'OOMenuSettings' , 'TopNodeNameList' ) as $ topNodeName ) { $ nodeID = $ contentINI -> variable ( 'NodeSettings' , $ topNodeName ) ; $ node = eZContentObjectTreeNode :: fetch ( $ nodeID ) ; if ( ! $ node ) { throw new Exception ( 'Could not fetch node: "' . $ topNodeName . '", ID: ' , $ nodeID ) ; } $ nodeListElement -> appendChild ( $ this -> createTreeNodeDOMElement ( $ domDocument , $ node ) ) ; $ elementCount ++ ; } $ nodeListElement -> setAttribute ( 'count' , $ elementCount ) ; return $ nodeListElement ; }
Get top node list.

@param Array getParameters.
@param Array getOptions.
@param Array postParameters.
@param Array postOptions.

@return DOMElement DOMElement contating top node information.
Get top node list .