Class \Prado\Util\TDbPluginModule
TDbPluginModule class.
TDbPluginModule adds database connectivity to the plugin modules. This standardizes the Database Connectivity for Plugins. Also TParameterizeBehavior can be used to set all TDbPluginModule::ConnectionID with one setting.
Class hierarchy
- \Prado\Util\TDbPluginModule implements IDbModule
- \Prado\Util\TPluginModule implements IPluginModule
- \Prado\TModule implements IModule
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 4.2.0
public
|
|
public
|
|
public
|
setConnectionID(string $value) : mixed
Sets the ID of a TDataSourceConfig module.
The datasource module will be used to establish the DB connection that will be used by the plugin. |
protected
|
createDbConnection(string $connectionID) : TDbConnection
Creates the DB connection. If no ConnectionId is available, this
will try to start a sqlite database if the subclass has a name via
{@see getSqliteDatabaseName}.
|
protected
|
\Prado\TApplicationComponent::FX_CACHE_FILE, \Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER, \Prado\Util\TPluginModule::PAGES_DIRECTORY |