SourceInterface
interface SourceInterface
Methods
mixed
select(string $dirName, string $fileName, string $extension)
Returns a single source.
array
selectAll(string $dirName, array $options = [])
Returns all sources.
bool
insert(string $dirName, string $fileName, string $extension, string $content)
Creates a new source.
int
update(string $dirName, string $fileName, string $extension, string $content, string $oldFileName = null, string $oldExtension = null)
Updates an existing source.
int
delete(string $dirName, string $fileName, string $extension)
Run a delete statement against the datasource.
int
lastModified(string $dirName, string $fileName, string $extension)
Return the last modified date of an object
string
makeCacheKey(string $name = '')
Generate a cache key unique to this source.
string
getPathsCacheKey()
Generate a paths cache key unique to this source
array
getAvailablePaths()
Get all available paths within this source
Details
at line 16
mixed
select(string $dirName, string $fileName, string $extension)
Returns a single source.
at line 26
array
selectAll(string $dirName, array $options = [])
Returns all sources.
at line 38
bool
insert(string $dirName, string $fileName, string $extension, string $content)
Creates a new source.
at line 52
int
update(string $dirName, string $fileName, string $extension, string $content, string $oldFileName = null, string $oldExtension = null)
Updates an existing source.
at line 63
int
delete(string $dirName, string $fileName, string $extension)
Run a delete statement against the datasource.
at line 74
int
lastModified(string $dirName, string $fileName, string $extension)
Return the last modified date of an object
at line 83
string
makeCacheKey(string $name = '')
Generate a cache key unique to this source.
at line 90
string
getPathsCacheKey()
Generate a paths cache key unique to this source
at line 97
array
getAvailablePaths()
Get all available paths within this source