public static function getDoneFlags(array $plugins, Segment $segment)
    {
        $doneFlags = array();
        $doneAllPlugins = self::getDoneFlagArchiveContainsAllPlugins($segment);
        $doneFlags[$doneAllPlugins] = $doneAllPlugins;

        $plugins = array_unique($plugins);
        foreach ($plugins as $plugin) {
            $doneOnePlugin = self::getDoneFlagArchiveContainsOnePlugin($segment, $plugin);
            $doneFlags[$plugin] = $doneOnePlugin;
        }
        return $doneFlags;
    }
public static function getDoneFlags(array $plugins, Segment $segment)
    {
        $doneFlags = array();
        $doneAllPlugins = self::getDoneFlagArchiveContainsAllPlugins($segment);
        $doneFlags[$doneAllPlugins] = $doneAllPlugins;

        $plugins = array_unique($plugins);
        foreach ($plugins as $plugin) {
            $doneOnePlugin = self::getDoneFlagArchiveContainsOnePlugin($segment, $plugin);
            $doneFlags[$plugin] = $doneOnePlugin;
        }
        return $doneFlags;
    }
public static function getDoneFlags ( array $ plugins , Segment $ segment ) { $ doneFlags = array ( ) ; $ doneAllPlugins = self :: getDoneFlagArchiveContainsAllPlugins ( $ segment ) ; $ doneFlags [ $ doneAllPlugins ] = $ doneAllPlugins ; $ plugins = array_unique ( $ plugins ) ; foreach ( $ plugins as $ plugin ) { $ doneOnePlugin = self :: getDoneFlagArchiveContainsOnePlugin ( $ segment , $ plugin ) ; $ doneFlags [ $ plugin ] = $ doneOnePlugin ; } return $ doneFlags ; }
Return done flags used to tell how the archiving process for a specific archive was completed,

@param array $plugins
@param $segment
@return array
Return done flags used to tell how the archiving process for a specific archive was completed