dmBridge PHP API
DMSQLiteDataStore Class Reference

An instance of this class will be returned by DMDataStoreFactory::getDataStore() when pdo_sqlite is the current data store. More...

Inheritance diagram for DMSQLiteDataStore:

Public Member Functions

Static Public Member Functions

Protected Attributes


Detailed Description

An instance of this class will be returned by DMDataStoreFactory::getDataStore() when pdo_sqlite is the current data store.

Author:
Alex Dolski <alex.dolski@unlv.edu> http://www.opensource.org/licenses/mit-license.php

Definition at line 16 of file DMSQLiteDataStore.php.


Member Function Documentation

DMSQLiteDataStore::databaseExists ( )
Returns:
Boolean

Definition at line 75 of file DMSQLiteDataStore.php.

static DMSQLiteDataStore::destroyInstance ( ) [static]

Destroys the current Singleton object (not all your data)

Returns:
void

Definition at line 35 of file DMSQLiteDataStore.php.

Referenced by DMDataStoreFactory::setDataStore().

DMSQLiteDataStore::getConnection ( )
Returns:
PDO handle
Exceptions:
DMPDOException

Definition at line 57 of file DMSQLiteDataStore.php.

static DMSQLiteDataStore::getInstance ( ) [static]
Returns:
self object

Reimplemented in UNLVHighlightSQLiteDataStore, UNLVRandomSQLiteDataStore, and UNLVSpatialSQLiteDataStore.

Definition at line 42 of file DMSQLiteDataStore.php.

Referenced by DMDataStoreFactory::getDataStore(), and getPath().

DMSQLiteDataStore::getPath ( )
Returns:
string

Definition at line 84 of file DMSQLiteDataStore.php.

Referenced by databaseExists(), and getConnection().

DMSQLiteDataStore::getType ( )
Returns:
string One of the constants in DMDataStoreType

Implements DMDataStore.

Definition at line 110 of file DMSQLiteDataStore.php.

DMSQLiteDataStore::setPath ( path)

Overrides the path to the database file.

If not explicitly set, the value from the config file will be used.

Parameters:
stringpath

Definition at line 103 of file DMSQLiteDataStore.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables