public static function getLocationsByContent( ezpContent $content )
    {
        $aReturnLocations = array();
        $assignedNodes = $content->assigned_nodes;
        foreach ( $assignedNodes as $node )
        {
            $location = ezpContentLocation::fromNode( $node );
            $locationData = self::getMetadataByLocation( $location );
            $locationData['isMain'] = $location->is_main;
            $aReturnLocations[] = $locationData;
        }

        return $aReturnLocations;
    }
public static function getLocationsByContent( ezpContent $content )
    {
        $aReturnLocations = array();
        $assignedNodes = $content->assigned_nodes;
        foreach ( $assignedNodes as $node )
        {
            $location = ezpContentLocation::fromNode( $node );
            $locationData = self::getMetadataByLocation( $location );
            $locationData['isMain'] = $location->is_main;
            $aReturnLocations[] = $locationData;
        }

        return $aReturnLocations;
    }
public static function getLocationsByContent ( ezpContent $ content ) { $ aReturnLocations = array ( ) ; $ assignedNodes = $ content -> assigned_nodes ; foreach ( $ assignedNodes as $ node ) { $ location = ezpContentLocation :: fromNode ( $ node ) ; $ locationData = self :: getMetadataByLocation ( $ location ) ; $ locationData [ 'isMain' ] = $ location -> is_main ; $ aReturnLocations [ ] = $ locationData ; } return $ aReturnLocations ; }
Returns all locations for provided content as array.
@param ezpContent $content
@return array Associative array with following keys :
- fullUrl => URL for content, including server
- nodeId => NodeID for location
- remoteId => RemoteID for location
- isMain => whether location is main for provided content
Returns all locations for provided content as array .