|
eZ Publish
[trunk]
|
The class eZExtension does. More...
Public Member Functions | |
| eZExtension () | |
Static Public Member Functions | |
| static | activateExtensions ($extensionType= 'default', eZINI $siteINI=null) |
| Will make sure that all extensions that has settings directories are added to the eZINI override list. | |
| static | activeExtensions ($extensionType=false, eZINI $siteINI=null) |
| Return an array with activated extensions. | |
| static | baseDirectory (eZINI $siteINI=null) |
| return the base directory for extensions | |
| static | clearActiveExtensionsMemoryCache () |
| Clears the active extensions in-memory cache. | |
| static | expandedPathList ($extensionList, $subdirectory=false) |
| static | extensionInfo ($extension) |
| static | extensionOrdering (array $activeExtensions) |
| Returns the provided array reordered with loading order information taken into account. | |
| 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=null, $order=true) |
| Prepend extension siteaccesses. | |
| static | prependSiteAccess ($extension, $accessName=false, $ini=false, $globalDir=true, $identifier=null) |
| Prepend siteaccess for specified extension. | |
Public Attributes | |
| const | CACHE_DIR = 'var/cache/' |
Static Protected Attributes | |
| static | $activeExtensionsCache = array() |
The class eZExtension does.
Definition at line 17 of file ezextension.php.
| static eZExtension::activateExtensions | ( | $ | extensionType = 'default', |
| eZINI $ | siteINI = null |
||
| ) | [static] |
Will make sure that all extensions that has settings directories are added to the eZINI override list.
| string | $extensionType | See eZExtension::activeExtensions(), value of false is deprecated as of 4.4 |
| eZINI | null | $siteINI | Optional parameter to be able to only do change on specific instance of site.ini |
Definition at line 194 of file ezextension.php.
Referenced by eZScript\initialize(), and eZSiteAccess\load().
| static eZExtension::activeExtensions | ( | $ | extensionType = false, |
| eZINI $ | siteINI = null |
||
| ) | [static] |
Return an array with activated extensions.
| false | string | $extensionType | Decides which extension to include in the list, the follow values are possible:
|
| eZINI | null | $siteINI | Optional parameter to be able to only do change on specific instance of site.ini |
Definition at line 67 of file ezextension.php.
Referenced by activateExtensions(), eZModule\activeModuleRepositories(), checkSiteaccess(), eZContentUpload\findHandler(), eZSiteAccess\findPathToSiteAccess(), eZDataType\getDBAExtensionFilePath(), eZPaymentGatewayType\loadAndRegisterExtensionGateways(), and prependExtensionSiteAccesses().
| static eZExtension::baseDirectory | ( | eZINI $ | siteINI = null | ) | [static] |
return the base directory for extensions
| eZINI | null | $siteINI | Optional parameter to be able to only do change on specific instance of site.ini |
Definition at line 46 of file ezextension.php.
Referenced by activateExtensions(), activeExtensions(), eZModule\activeModuleRepositories(), eZNotificationEventFilter\availableHandlers(), checkSiteaccess(), eZExchangeRatesUpdateHandler\create(), eZContentObjectTreeNode\createExtendedAttributeFilterSQLStrings(), eZContentObjectEditHandler\executeHandlerFunction(), expandedPathList(), ext_activate(), ext_class(), ext_include(), extension_path(), eZRSSImport\fieldMap(), eZFilePackageHandler\fileExists(), findExtensionType(), eZContentUpload\findHandler(), eZSiteAccess\findPathToSiteAccess(), eZDataType\getDBAExtensionFilePath(), ezpExtension\getInfo(), ezpExtension\getLoadingOrder(), eZExtensionPackageHandler\handleAddParameters(), eZCollaborationItemHandler\handlerRepositories(), eZContentObjectEditHandler\initialize(), eZNotificationEventType\loadAndRegisterType(), eZWorkflowType\loadAndRegisterType(), eZDataType\loadAndRegisterType(), eZShippingManager\loadBasketInfoHandler(), eZExtensionPackageCreator\loadExtensionName(), eZNotificationEventFilter\loadHandler(), eZShippingManager\loadShippingHandler(), eZTSTranslator\loadTranslationFile(), eZVATManager\loadVATHandler(), nameFromPath(), nameFromPath(), prependSiteAccess(), and eZClusterFileHandler\searchPathArray().
| static eZExtension::clearActiveExtensionsMemoryCache | ( | ) | [static] |
Clears the active extensions in-memory cache.
Definition at line 584 of file ezextension.php.
Referenced by eZCache\clearActiveExtensions(), and eZSiteAccess\load().
| 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 289 of file ezextension.php.
Referenced by eZTemplate\factory(), eZSearch\getEngine(), eZSimpleTagsOperator\initializeIncludes(), eZUserLoginHandler\instance(), and eZCodeMapper\loadTransformationFiles().
| 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 439 of file ezextension.php.
Referenced by getExtensionsInfo().
| static eZExtension::extensionOrdering | ( | array $ | activeExtensions | ) | [static] |
Returns the provided array reordered with loading order information taken into account.
| array | $activeExtensions | Array of extensions. |
Definition at line 150 of file ezextension.php.
Referenced by activeExtensions().
Constructor
Definition at line 36 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 340 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 486 of file ezextension.php.
Referenced by eZDBFileHandler\__construct(), eZDFSFileHandler\__construct(), eZContentCacheManager\clearObjectViewCache(), ezpAttributeOperatorManager\createFormatter(), ezpRestProvider\createProvider(), ezpRestContentRenderer\createRenderer(), eZImageManager\factoryFor(), ezpRestAuthConfiguration\filter(), eZContentCacheManager\generateObjectViewCache(), eZSession\getHandlerInstance(), ezpRestRouteFilterInterface\getRouteFilter(), eZXMLText\inputHandler(), eZClusterFileHandler\instance(), eZDB\instance(), eZBinaryFileHandler\instance(), eZPackageInstallationHandler\instance(), eZPackageCreationHandler\instance(), eZXMLText\outputHandler(), eZPackage\packageHandler(), eZContentObjectTreeNode\removeThis(), ezpMvcConfiguration\runPreRoutingFilters(), and eZMailTransport\send().
| static eZExtension::isExtension | ( | $ | path | ) | [static] |
| $path | Path to check. |
Definition at line 469 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 451 of file ezextension.php.
Referenced by isExtension(), and isExtension().
| static eZExtension::prependExtensionSiteAccesses | ( | $ | accessName = false, |
| $ | ini = false, |
||
| $ | globalDir = true, |
||
| $ | identifier = null, |
||
| $ | order = true |
||
| ) | [static] |
Prepend extension siteaccesses.
| string | false | $accessName | Optional access name, will use global if false |
| eZINI | false | null | $ini | |
| true | $globalDir | |
| string|false|null | See eZExtension::prependSiteAccess() | |
| bool | $order | Prepend extensions in reverse order by setting this to false |
Definition at line 236 of file ezextension.php.
Referenced by eZSiteAccess\change(), changeSiteAccessSetting(), and eZINI\findInputFiles().
| static eZExtension::prependSiteAccess | ( | $ | extension, |
| $ | accessName = false, |
||
| $ | ini = false, |
||
| $ | globalDir = true, |
||
| $ | identifier = null |
||
| ) | [static] |
Prepend siteaccess for specified extension.
| string | $extension | Name of extension (folder name) |
| string | false | $accessName | Optional access name, will use global if false |
| eZINI | false | null | $ini | |
| true | $globalDir | |
| string | false | null | $identifier | By setting to string "siteaccess" only one location is supported (identifier makes eZINI overwrite earlier prepends with same key) null(default) means "ext-siteaccess:$extension" is used to only have one pr extension |
Definition at line 262 of file ezextension.php.
Referenced by activateExtensions(), and prependExtensionSiteAccesses().
eZExtension::$activeExtensionsCache = array() [static, protected] |
Definition at line 31 of file ezextension.php.
| const eZExtension::CACHE_DIR = 'var/cache/' |
Definition at line 24 of file ezextension.php.