Class MImapDatastore
Class to connect to a datastore based on a imap mailaccount.
-
webfilesframework\core\datasystem\file\format\MWebfile
-
webfilesframework\core\datastore\MAbstractDatastore
-
webfilesframework\core\datastore\types\mail\MImapDatastore
implements
webfilesframework\core\datastore\MISingleDatasourceDatastore
Methods summary
public
|
|
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
webfilesframework\core\datasystem\file\format\MWebfile
|
#
getNextWebfileForTimestamp( integer $timestamp )
According to the given timestamp the next matching webfile will be searched and returned.
According to the given timestamp the next matching webfile will be searched and returned.
Parameters
Returns
Throws
Overrides
|
public
webfilesframework\core\datasystem\file\format\MWebfileStream
|
|
public
array
|
#
getWebfilesAsArray( )
Returns all webfiles from the actual datastore.
Returns all webfiles from the actual datastore.
Returns
array list of webfiles
|
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
|
|
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:
- On the first step you define the template you want to search with. Here can help you the method
presetDefaultForTemplate on the class MWebfile.
- 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:
- On the first step you define the template you want to search with. Here can help you the method presetDefaultForTemplate on the class MWebfile.
- 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
webfilesframework\core\datastore\types\mail\MMailAccount
|
|
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()
|