ChainFileSource
class ChainFileSource extends AbstractSource implements SourceInterface
Properties
protected Processor | $processor | The query post processor implementation. |
from AbstractSource |
protected array | $sources | ||
protected array | $pathCache | ||
protected bool | $allowCacheRefreshes | ||
string | $activeSourceKey |
Methods
Generate a cache key unique to this source.
Create a new source instance.
Populate the local cache of paths available in each source
Get the source for use with CRUD operations
Get the appropriate source for the provided path
Helper to make file path.
Returns a single source.
Returns all sources.
Creates a new source.
Updates an existing source.
Run a delete statement against the source.
Return the last modified date of an object
Generate a paths cache key unique to this source
Get all available paths within this source
Details
in
AbstractSource at line 18
Processor
getProcessor()
Get the query post processor used by the connection.
at line 267
int|string
makeCacheKey(string $name = '')
Generate a cache key unique to this source.
at line 39
__construct(array $sources)
Create a new source instance.
at line 56
protected void
populateCache(bool $refresh = false)
Populate the local cache of paths available in each source
at line 80
protected SourceInterface
getActiveSource()
Get the source for use with CRUD operations
at line 91
protected SourceInterface
getSourceForPath(string $path)
Get the appropriate source for the provided path
at line 116
protected string
makeFilePath(string $dirName, string $fileName, string $extension)
Helper to make file path.
at line 130
mixed
select(string $dirName, string $fileName, string $extension)
Returns a single source.
at line 152
array
selectAll(string $dirName, array $options = [])
Returns all sources.
at line 176
bool
insert(string $dirName, string $fileName, string $extension, string $content)
Creates a new source.
at line 198
int
update(string $dirName, string $fileName, string $extension, string $content, string $oldFileName = null, string $oldExtension = null)
Updates an existing source.
at line 235
int
delete(string $dirName, string $fileName, string $extension)
Run a delete statement against the source.
at line 253
int
lastModified(string $dirName, string $fileName, string $extension)
Return the last modified date of an object
at line 283
string
getPathsCacheKey()
Generate a paths cache key unique to this source
at line 293
array
getAvailablePaths()
Get all available paths within this source