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;
    }