Back to FilesystemHelper class

Method getSupported

public static array
getSupported
()
Stream and Filter Support Operations
Returns
  • array Streams
Since
  • 1.7.0

Method getSupported - Source code

/**
 * Stream and Filter Support Operations
 *
 * Returns the supported streams, in addition to direct file access
 * Also includes Joomla! streams as well as PHP streams
 *
 * @return  array  Streams
 *
 * @since   1.7.0
 */
public static function getSupported()
{
    // Really quite cool what php can do with arrays when you let it...
    static $streams;
    if (!$streams) {
        $streams = array_merge(stream_get_wrappers(), self::getJStreams());
    }
    return $streams;
}