- Symphony 2.2.1
-
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
66 -
› Unknown
33 - Delegates83
- Deprecated30
Versions
- 2.7.9
- 2.7.8
- 2.7.7
- 2.7.6
- 2.7.5
- 2.7.3
- 2.7.2
- 2.7.10
- 2.7.1
- 2.7.0
- 2.6.9
- 2.6.8
- 2.6.7
- 2.6.6
- 2.6.5
- 2.6.4
- 2.6.3
- 2.6.2
- 2.6.11
- 2.6.10
- 2.6.1
- 2.6.0
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4
- 2.3.6
- 2.3.5
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2
Options
Manager DatasourceManager
public class DatasourceManager extends Manager
class.datasourcemanager.php #17The DatasourceManager class is responsible for managing all Datasource objects
in Symphony. Datasources's are stored on the file system either in the
WORKSPACE . /data-sources
folder or provided by an extension in EXTENSIONS . /./data-sources
folder.
Datasources are run from the Frontend to commonly output Entries and parameters,
however there any different types of Datasource that query external sources for data.
Typically, a Datasource returns XML.
Methods
string __getClassName(
$handle, $name)
Given a name, returns the full class name of an Datasources. Datasources use a 'datasource' prefix.
Parameters
mixed __getClassPath(
$handle, $name)
Finds a Datasource by name by searching the data-sources folder in the workspace and in all installed extension folders and returns the path to it's folder.
Parameters
Returns
If the datasource is found, the function returns the path it's folder, otherwise false.
string __getDriverPath(
$handle, $name)
Given a name, return the path to the Datasource class
Parameters
See Also
string __getHandleFromFilename(
$filename)
Given the filename of a Datasource return it's handle. This will remove
the Symphony convention of data.*.php
Parameters
Datasource create(
$handle, $env, $process_params, $name)
Creates an instance of a given class and returns it.
Parameters
array listAll()
Finds all available Datasources by searching the data-sources folder in the workspace and in all installed extension folders. Returns an associative array of data-sources.
Returns
Associative array of Datasources with the key being the handle of the Datasource and the value being the Datasource's about()
information.