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 MCombinedDatastore

Combines different datastores in one datastore together.

webfilesframework\core\datasystem\file\format\MWebfile
Extended by webfilesframework\core\datastore\MAbstractDatastore
Extended by webfilesframework\core\datastore\MCombinedDatastore
Namespace: webfilesframework\core\datastore
Author: Sebastian Monzel < mail@sebastianmonzel.de >
Since: 0.1.7
Located at core/datastore/MCombinedDatastore.php
Methods summary
public
# tryConnect( )

Checks if a connection is possible.

Checks if a connection is possible.

public boolean
# isReadOnly( )

Determines if the datastore is read-only or not.

Determines if the datastore is read-only or not.

Returns

boolean
information if datastore is readonly or not.
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.

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.

Parameters

$timestamp

Throws

webfilesframework\core\datastore\MDatastoreException

Overrides

webfilesframework\core\datastore\MAbstractDatastore::getNextWebfileForTimestamp()
public
# registerDatastore( webfilesframework\core\datastore\MAbstractDatastore $datastore )
public webfilesframework\core\datasystem\file\format\MWebfileStream
# getWebfilesAsStream( )

Returns

webfilesframework\core\datasystem\file\format\MWebfileStream

See

MAbstractDatastore:getWebfilestream()
public array
# getLatestWebfiles( integer $count = 5 )

Returns the latests webfiles. Sorting will happen according to the time information of the webfiles.

Returns the latests webfiles. Sorting will happen according to the time information of the webfiles.

Parameters

$count
Count of webfiles to be selected.

Returns

array
list of webfiles
public array
# searchByTemplate( webfilesframework\core\datasystem\file\format\MWebfile $template )

Returns a set of webfiles in the actual datastore which matches with the given template.
Searching by template is devided in two steps:

  1. On the first step you define the template you want to search with. Here can help you the method presetDefaultForTemplate on the class MWebfile.
  2. On the second step you put the template to the datastore to start the search

Returns a set of webfiles in the actual datastore which matches with the given template.
Searching by template is devided in two steps:

  1. On the first step you define the template you want to search with. Here can help you the method presetDefaultForTemplate on the class MWebfile.
  2. On the second step you put the template to the datastore to start the search

Parameters

$template
template to search for

Returns

array
list of webfiles
public
# getDatasetsFromDatastore( )
public
# getLatestDatasets( $count = 5, $reverse = true )
public array
# getWebfilesAsArray( )

Returns all webfiles from the actual datastore.

Returns all webfiles from the actual datastore.

Returns

array
list of webfiles
Methods inherited from webfilesframework\core\datastore\MAbstractDatastore
addWebfileSafetyToArray(), deleteByTemplate(), extractDatasetsFromWebfilesArray(), filterWebfilesArrayByTemplate(), resolveCustomDatastoreById(), storeWebfile(), storeWebfilesFromStream()
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()
Properties inherited from webfilesframework\core\datasystem\file\format\MWebfile
$m_iId, $m_iTime
API documentation generated by ApiGen