- Symphony 2.2.3
-
› assets
11 -
› boot
9 -
› core
22 -
› email-gateways
3 -
› toolkit
67 -
› Unknown
33 - Delegates87
- 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
public abstract class Manager
class.manager.php #14The abstract Manager class provides some generic functions to assist the managers in cataloguing their children. This class defines a number of abstract methods to enable autodiscovery of file based objects such as Datasource, Event, Extension and Text Formatter. Manager classes implement CRUD methods to apply their objects.
Methods
void __construct(Administration $parent)
The constructor for Manager. This sets the $this->_Parent
to be an
instance of the Administration class.
Parameters
string __getClassName(
$name)
Given a name, return the class name of that object. Symphony objects often have conventions tied to an objects class name that prefix the class with the type of the object. eg. field{Class}, formatter{Class}
string __getClassPath(
$name)
Given a name, return the path to the class of that object
string __getDriverPath(
$name)
Given a name, return the path to the driver of that object
string __getHandleFromFilename(
$filename)
Given a filename, return the handle. This will remove
any Symphony conventions such as field.*.php
boolean|array about(
$name)
The about function returns information about a particular object
in this manager's pool. It is limited for use on file based objects
such as Datasource, Event, Extension and Text Formatter. The function
uses the getClassName()
, getDriverPath()
and getHandleFromFilename()
functions to autodiscover the object. There is no confusion between names (ie.
does author refer to a Datasource or Field) because the Manager subclass
will override the autodiscovery functions to only look for objects of
that type.
Parameters
Returns
False is object doesn't exist or an associative array of information
object create(
$name)
Creates a new instance of an object by name and returns it by reference.
Parameters
Returns
by reference
void flush()
This function will empty the $_pool array.
array listAll()
Returns an array of all the objects that this manager is responsible for. This function is only use on the file based Managers in Symphony such DatasourceManager, EventManager, ExtensionManager, FieldManager and TextformatterManager.