public static function getChildrenList( ezpContentCriteria $c, ezpRestRequest $currentRequest, array $responseGroups = array() )
    {
        $aRetData = array();
        $aChildren = ezpContentRepository::query( $c );

        foreach ( $aChildren as $childNode )
        {
            $childEntry = self::getMetadataByContent( $childNode );
            $childEntry = array_merge( $childEntry, self::getMetadataByLocation( $childNode->locations ) );

            // Add fields with their values if requested
            if ( in_array( ezpRestContentController::VIEWLIST_RESPONSEGROUP_FIELDS, $responseGroups ) )
            {
                $childEntry['fields'] = array();
                foreach ( $childNode->fields as $fieldName => $field )
                {
                    $childEntry['fields'][$fieldName] = self::attributeOutputData( $field );
                }
            }

            $aRetData[] = $childEntry;
        }

        return $aRetData;
    }
public static function getChildrenList( ezpContentCriteria $c, ezpRestRequest $currentRequest, array $responseGroups = array() )
    {
        $aRetData = array();
        $aChildren = ezpContentRepository::query( $c );

        foreach ( $aChildren as $childNode )
        {
            $childEntry = self::getMetadataByContent( $childNode );
            $childEntry = array_merge( $childEntry, self::getMetadataByLocation( $childNode->locations ) );

            // Add fields with their values if requested
            if ( in_array( ezpRestContentController::VIEWLIST_RESPONSEGROUP_FIELDS, $responseGroups ) )
            {
                $childEntry['fields'] = array();
                foreach ( $childNode->fields as $fieldName => $field )
                {
                    $childEntry['fields'][$fieldName] = self::attributeOutputData( $field );
                }
            }

            $aRetData[] = $childEntry;
        }

        return $aRetData;
    }
public static function getChildrenList ( ezpContentCriteria $ c , ezpRestRequest $ currentRequest , array $ responseGroups = array ( ) ) { $ aRetData = array ( ) ; $ aChildren = ezpContentRepository :: query ( $ c ) ; foreach ( $ aChildren as $ childNode ) { $ childEntry = self :: getMetadataByContent ( $ childNode ) ; $ childEntry = array_merge ( $ childEntry , self :: getMetadataByLocation ( $ childNode -> locations ) ) ; // Add fields with their values if requested if ( in_array ( ezpRestContentController :: VIEWLIST_RESPONSEGROUP_FIELDS , $ responseGroups ) ) { $ childEntry [ 'fields' ] = array ( ) ; foreach ( $ childNode -> fields as $ fieldName => $ field ) { $ childEntry [ 'fields' ] [ $ fieldName ] = self :: attributeOutputData ( $ field ) ; } } $ aRetData [ ] = $ childEntry ; } return $ aRetData ; }
Returns all children node data, based on the provided criteria object
@param ezpContentCriteria $c
@param ezpRestRequest $currentRequest
@param array $responseGroups Requested ResponseGroups
@return array
Returns all children node data based on the provided criteria object