Overview

Namespaces

  • webfilesframework
    • codegeneration
      • general
      • php
    • core
      • datastore
        • functions
          • filter
          • sorting
        • types
          • database
            • resultHandler
          • directory
          • googlecalendar
          • mail
          • remote
      • datasystem
        • database
        • file
          • format
            • media
              • image
                • handler
          • system
            • dropbox
      • datatypes
        • time
      • time
    • io
      • form
        • formItem
        • validation
        • webfile
      • request

Classes

  • MAbstractCachableDatastore
  • MAbstractDatastore
  • MCombinedDatastore
  • MDatastoreFactory
  • MDatastoreTransfer

Interfaces

  • MISingleDatasourceDatastore

Exceptions

  • MDatastoreException
  • Overview
  • Namespace
  • Class

Class MAbstractCachableDatastore

Defines and provides basic functionality for caching a datastore.
Basically the cached datastore is a combination between a efficient datastore which can be used as cache and an slower datastore (e.g. a directory datastore or a remote datastore).
Actually cache is invalidated after one day.

webfilesframework\core\datasystem\file\format\MWebfile
Extended by webfilesframework\core\datastore\MAbstractDatastore
Extended by webfilesframework\core\datastore\MAbstractCachableDatastore

Direct known subclasses

webfilesframework\core\datastore\types\directory\MDirectoryDatastore, webfilesframework\core\datastore\types\googlecalendar\MGoogleCalendarDatastore
Abstract
Namespace: webfilesframework\core\datastore
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datastore/MAbstractCachableDatastore.php
Methods summary
public
# setCachingDatastore( webfilesframework\core\datastore\MAbstractDatastore $cachingDatastore )

sets the datastore used for caching data from the original datastore.

sets the datastore used for caching data from the original datastore.

Parameters

$cachingDatastore

Throws

Exception
public
# fillCachingDatastore( )
public
# isDatastoreCached( )
public
# getLatestCachingTime( )
public mixed
# isCacheActual( )

Define a criteria which indicates the actual datastore with cache is not outdated.

Define a criteria which indicates the actual datastore with cache is not outdated.

Default implemention checks if last caching was more than one day ago.

Returns

mixed
Methods inherited from webfilesframework\core\datastore\MAbstractDatastore
addWebfileSafetyToArray(), deleteByTemplate(), extractDatasetsFromWebfilesArray(), filterWebfilesArrayByTemplate(), getLatestWebfiles(), getNextWebfileForTimestamp(), getWebfilesAsArray(), getWebfilesAsStream(), isReadOnly(), resolveCustomDatastoreById(), searchByTemplate(), storeWebfile(), storeWebfilesFromStream(), tryConnect()
Methods inherited from webfilesframework\core\datasystem\file\format\MWebfile
classname(), createWebfileByClassname(), getAttributes(), getClassInformation(), getDataset(), getDatatypeFromAttributeName(), getGeograficPosition(), getId(), getSimplifiedAttributeName(), getTime(), isObject(), isSimpleDatatype(), marshall(), matchesTemplate(), presetForTemplateSearch(), setId(), setTime(), staticUnmarshall(), unmarshall()
Constants summary
integer ONE_DAY_IN_SECONDS
# 86400
Properties summary
protected webfilesframework\core\datastore\MAbstractDatastore $cachingDatastore

$cachingDatastore *

$cachingDatastore *

#
protected $latestCachingTime
#
Properties inherited from webfilesframework\core\datasystem\file\format\MWebfile
$m_iId, $m_iTime
API documentation generated by ApiGen