|
eZ Publish
[4.2]
|
The class eZExtension does. More...
Public Member Functions | |
| eZExtension () | |
Static Public Member Functions | |
| static | activateExtensions ($extensionType=false) |
| static | activeExtensions ($extensionType=false) |
| static | baseDirectory () |
| static | expandedPathList ($extensionList, $subdirectory=false) |
| static | extensionInfo ($extension) |
| static | findExtensionType ($parameters, &$out) |
| static | getHandlerClass (ezpExtensionOptions $options) |
| Returns the correct handler defined in $iniFile configuration file A correct class name for the handler needs to be specified in the ini settings, and the class needs to be present for the autoload system. | |
| static | isExtension ($path) |
| static | nameFromPath ($path) |
| static | prependExtensionSiteAccesses ($accessName=false, $ini=false, $globalDir=true, $identifier=false, $order=true) |
| static | prependSiteAccess ($extension, $accessName=false, $ini=false, $globalDir=true, $identifier=false) |
The class eZExtension does.
Definition at line 40 of file ezextension.php.
| static eZExtension::activateExtensions | ( | $ | extensionType = false | ) | [static] |
Will make sure that all extensions that has settings directories are added to the eZINI override list.
Definition at line 98 of file ezextension.php.
Referenced by eZScript\initialize(), and eZSiteAccess\reInitialise().
| static eZExtension::activeExtensions | ( | $ | extensionType = false | ) | [static] |
| $extensionType | Decides which extension to include in the list, the follow values are possible.
|
Default extensions are those who are loaded before a siteaccess are determined while access extensions are loaded after siteaccess is set.
Definition at line 71 of file ezextension.php.
Referenced by activateExtensions(), eZModule\activeModuleRepositories(), checkSiteaccess(), eZContentUpload\findHandler(), eZSiteAccess\findPathToSiteAccess(), eZDataType\getDBAExtensionFilePath(), eZPaymentGatewayType\loadAndRegisterExtensionGateways(), and prependExtensionSiteAccesses().
| static eZExtension::baseDirectory | ( | ) | [static] |
Definition at line 53 of file ezextension.php.
Referenced by activateExtensions(), eZModule\activeModuleRepositories(), eZNotificationEventFilter\availableHandlers(), checkSiteaccess(), eZContentObjectTreeNode\createExtendedAttributeFilterSQLStrings(), eZContentObjectEditHandler\executeHandlerFunction(), expandedPathList(), ext_activate(), ext_class(), ext_include(), extension_path(), extensionInfo(), eZRSSImport\fieldMap(), eZFilePackageHandler\fileExists(), findExtensionType(), eZContentUpload\findHandler(), eZSiteAccess\findPathToSiteAccess(), eZDataType\getDBAExtensionFilePath(), eZCollaborationItemHandler\handlerRepositories(), eZContentObjectEditHandler\initialize(), eZNotificationEventType\loadAndRegisterType(), eZWorkflowType\loadAndRegisterType(), eZDataType\loadAndRegisterType(), eZShippingManager\loadBasketInfoHandler(), eZNotificationEventFilter\loadHandler(), eZShippingManager\loadShippingHandler(), eZTSTranslator\loadTranslationFile(), eZVATManager\loadVATHandler(), nameFromPath(), nameFromPath(), prependSiteAccess(), and eZClusterFileHandler\searchPathArray().
| static eZExtension::expandedPathList | ( | $ | extensionList, |
| $ | subdirectory = false |
||
| ) | [static] |
Generates a list with expanded paths and returns it. The paths are expanded to where the extensions are placed. Optionally a subdirectory of the extension may be set using $subdirectory.
Definition at line 180 of file ezextension.php.
Referenced by eZSearch\getEngine(), eZSimpleTagsOperator\initializeIncludes(), eZUserLoginHandler\instance(), eZUser\instance(), eZCodeMapper\loadTransformationFiles(), eZURLAliasFilter\processFilters(), and templateInit().
| static eZExtension::extensionInfo | ( | $ | extension | ) | [static] |
Read extension information. Returns extension information array specified in feature request 9371. ( http://issues.ez.no/9371 )
| extension | name |
Definition at line 330 of file ezextension.php.
| eZExtension::eZExtension | ( | ) |
Constructor
Definition at line 45 of file ezextension.php.
| static eZExtension::findExtensionType | ( | $ | parameters, |
| &$ | out | ||
| ) | [static] |
This is help function for searching for extension code. It will read ini variables defined in $parameters, search trough the specified directories for specific files and set the result in $out.
The $parameters parameter must contain the following entries.
Type aliases allows overriding a specific type to use another type handler, this is useful when extensions want to take control of some specific types or you want multiple names (aliases) for one type.
On success the $out parameter will contain:
Definition at line 231 of file ezextension.php.
Referenced by eZImageAnalyzer\create(), eZShopAccountHandler\instance(), eZConfirmOrderHandler\instance(), and eZBinaryFile\metaData().
| static eZExtension::getHandlerClass | ( | ezpExtensionOptions $ | options | ) | [static] |
Returns the correct handler defined in $iniFile configuration file A correct class name for the handler needs to be specified in the ini settings, and the class needs to be present for the autoload system.
| object | $options,and | ezpExtensionOptions object |
Definition at line 392 of file ezextension.php.
Referenced by eZDFSFileHandler\__construct(), eZDBFileHandler\eZDBFileHandler(), eZImageManager\factoryFor(), eZXMLText\inputHandler(), eZClusterFileHandler\instance(), eZDB\instance(), eZBinaryFileHandler\instance(), eZPackageInstallationHandler\instance(), eZPackageCreationHandler\instance(), eZXMLText\outputHandler(), eZPackage\packageHandler(), and eZMailTransport\send().
| static eZExtension::isExtension | ( | $ | path | ) | [static] |
| $path | Path to check. |
Definition at line 375 of file ezextension.php.
| static eZExtension::nameFromPath | ( | $ | path | ) | [static] |
eZExtension::nameFromPath( __FILE__ ) executed in any file of an extension can help you to find the path to additional resources
| $path | Path to check. |
Definition at line 357 of file ezextension.php.
Referenced by isExtension(), and isExtension().
| static eZExtension::prependExtensionSiteAccesses | ( | $ | accessName = false, |
| $ | ini = false, |
||
| $ | globalDir = true, |
||
| $ | identifier = false, |
||
| $ | order = true |
||
| ) | [static] |
Prepend extension siteaccesses
| accessName | siteaccess name ( default false ) |
Definition at line 133 of file ezextension.php.
Referenced by eZINI\findInputFiles(), and eZSiteAccess\reInitialise().
| static eZExtension::prependSiteAccess | ( | $ | extension, |
| $ | accessName = false, |
||
| $ | ini = false, |
||
| $ | globalDir = true, |
||
| $ | identifier = false |
||
| ) | [static] |
Prepend siteaccess for specified extension.
| $extension | name |
Definition at line 155 of file ezextension.php.
Referenced by activateExtensions(), and prependExtensionSiteAccesses().