Class MAbstractDatastore
Base class for defining datastores to save and load webfiles on a standardized way.
More about the definition of a datastore can be found under
the following link.
Implements the webfiles standard to be able to edit datastores with help of the webfile editor.
- webfilesframework\core\datasystem\file\format\MWebfile
- webfilesframework\core\datastore\MAbstractDatastore
Direct known subclasses
webfilesframework\core\datastore\MAbstractCachableDatastore, webfilesframework\core\datastore\MCombinedDatastore, webfilesframework\core\datastore\types\database\MDatabaseDatastore, webfilesframework\core\datastore\types\directory\MDirectoryDatastoreWebfile, webfilesframework\core\datastore\types\mail\MImapDatastore, webfilesframework\core\datastore\types\remote\MRemoteDatastoreIndirect known subclasses
webfilesframework\core\datastore\types\directory\MDirectoryDatastore, webfilesframework\core\datastore\types\googlecalendar\MGoogleCalendarDatastoreNamespace: webfilesframework\core\datastore
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datastore/MAbstractDatastore.php
abstract public
|
|
abstract public
boolean
|
|
public
|
#
getNextWebfileForTimestamp( $timestamp )
Some datastore cannot be sorted by time due to performance issues. In this time cache can solve the problem. For letting the developer decide if implementing sorting by timestamp this function sets the sorting to true or false. |
abstract public
|
|
abstract public
array
|
|
abstract public
array
|
#
getLatestWebfiles( integer $count = 5 )
Returns the latests webfiles. Sorting will happen according to the time information of the webfiles. |
abstract public
array
|
#
searchByTemplate(
Returns a set of webfiles in the actual datastore which matches
with the given template.
|
protected
array
|
#
filterWebfilesArrayByTemplate( array $webfiles,
|
public
|
#
storeWebfile(
Stores a single webfile in the datastore. |
public
|
#
storeWebfilesFromStream(
Stores all webfiles from a given webfilestream in the actual datastore |
public
|
#
deleteByTemplate(
Deletes a set of webfiles in the actual datastore which can be applied to the given template. |
public static
|
#
resolveCustomDatastoreById( string $datastoreId )
Resolves a datastore which is localized in the folder
"./custom/datastore" according to the given id. |
public static
array
|
|
protected
|
#
addWebfileSafetyToArray(
|
$m_iId,
$m_iTime
|