Virtual filesystem structure.

package filicious-core
author Christian Schiffler
author Tristan Lins
author Oliver Hoff

 Methods

__construct()

__construct(\Filicious\Internals\Adapter $adapter) 

Parameters

__destruct()

__destruct() 

Disable streaming for this filesystem.

disableStreaming() 

Enable streaming for this filesystem.

enableStreaming(mixed $host, null $scheme) : static

Parameters

$host

$scheme

null

Returns

static

Get a file object for the specific file.

getFile(string $path) : \Filicious\File

Parameters

$path

string

Returns

Return a plugin for the filesystem.

getPlugin(mixed $name) : \Filicious\Plugin\FilesystemPluginInterface | null

Parameters

$name

Returns

getPluginManager()

getPluginManager() : \Filicious\Plugin\PluginManager | null

Get the root (/) file node.

getRoot() : \Filicious\File

Returns

getRootAdapter()

getRootAdapter() : \Filicious\Internals\RootAdapter

Return the stream host or null if streaming is disabled.

getStreamHost() : string | null

Returns

stringnull

Return the complete stream url prefix, e.g. filicious://example

getStreamPrefix() : string | null

Returns

stringnull

Return the stream scheme or null if streaming is disabled.

getStreamScheme() : string | null

Returns

stringnull

Return a plugin for the filesystem.

hasPlugin(mixed $name) : \Filicious\Plugin\FilesystemPluginInterface | null

Parameters

$name

Returns

Determine is streaming currently enabled.

isStreamingEnabled() : bool

Returns

bool

setEventDispatcher()

setEventDispatcher(\Symfony\Component\EventDispatcher\EventDispatcherInterface|null $eventDispatcher) : static

Parameters

Returns

static

setPluginManager()

setPluginManager(\Filicious\Plugin\PluginManager|null $pluginManager) : static

Parameters

$pluginManager

\Filicious\Plugin\PluginManagernull

Returns

static

 Properties

 

$adapter

$adapter : \Filicious\Internals\RootAdapter
 

$eventDispatcher

$eventDispatcher : \Symfony\Component\EventDispatcher\EventDispatcherInterface | null
 

$pluginManager

$pluginManager : \Filicious\Plugin\PluginManager | null
 

$streamHost

$streamHost : string
 

$streamScheme

$streamScheme : string