- Symphony 2.6.1
-
› assets
14 -
› boot
14 -
› core
23 -
› cryptography
4 -
› data-sources
6 -
› email-gateways
3 -
› events
3 -
› global
61 -
› interface
9 -
› toolkit
60 - Delegates92
- Deprecated24
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 interface FileResource
interface.fileresource.php #14The FileResource
interface defines the minimum functions required
by managers that manage Symphony's file based objects. This interface
is used by the DatasourceManager
, EventManager
, EmailGatewayManager
,
ExtensionManager
, FieldManager
and TextFormatterManager
.
Methods
static string|boolean __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}
static string|boolean __getClassPath(
$name)
Given a name, return the path to the class of that object
static string|boolean __getDriverPath(
$name)
Given a name, return the path to the driver of that object
static string|boolean __getHandleFromFilename(
$filename)
Given a filename, return the handle. This will remove
any Symphony conventions such as field.*.php
static array|boolean about(
$name)
The about function returns information about a particular object
in this manager's pool. It is limited for use on objects provided by
Extensions.
The function uses the getClassName()
, getDriverPath()
and
getHandleFromFilename()
functions to find the object of the Manager's
type on the filesystem.
Parameters
Returns
False is object doesn't exist or an associative array of information
static object create(
$name)
Creates a new instance of an object by name and returns it by reference.
Parameters
static 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
, EmailGatewayManager
,
ExtensionManager
, FieldManager
and TextformatterManager
.