lib/ezutils/classes/ezextension.php
File containing the eZExtension class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- lib
- Version
- 4.6.0
\eZExtension
File containing the eZExtension class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Constants
Properties
Methods


activateExtensions(
string $extensionType
=
'default', \eZINI | null $siteINI
=
null
)
:
void
Will make sure that all extensions that has settings directories are added to the eZINI override list.
Name | Type | Description |
---|---|---|
$extensionType | string | See {@link eZExtension::activeExtensions()}, value of false is deprecated as of 4.4 |
$siteINI | \eZINI | null | Optional parameter to be able to only do change on specific instance of site.ini |


activeExtensions(
false | string $extensionType
=
false, \eZINI | null $siteINI
=
null
)
:
array
Return an array with activated extensions.
Name | Type | Description |
---|---|---|
$extensionType | false | string | Decides which extension to include in the list, the follow values are possible: - false - Means add both default and access extensions - 'default' - Add only default extensions - 'access' - Add only access extensions |
$siteINI | \eZINI | null | Optional parameter to be able to only do change on specific instance of site.ini |
Type | Description |
---|---|
array |
- Note
- Default extensions are those who are loaded before a siteaccess are determined while access extensions are loaded after siteaccess is set.


baseDirectory(
\eZINI | null $siteINI
=
null
)
:
string
return the base directory for extensions
Name | Type | Description |
---|---|---|
$siteINI | \eZINI | null | Optional parameter to be able to only do change on specific instance of site.ini |
Type | Description |
---|---|
string |


expandedPathList(
$extensionList, $subdirectory
=
false
)
:
void
Name | Type | Description |
---|---|---|
$extensionList | ||
$subdirectory |


extensionOrdering(
array $activeExtensions
)
:
void
Returns the provided array reordered with loading order information taken into account.
Name | Type | Description |
---|---|---|
$activeExtensions | array | Array of extensions. |
- See
- \activeExtensions


findExtensionType(
$parameters, $out
)
:
void
Name | Type | Description |
---|---|---|
$parameters | ||
$out |


getHandlerClass(
$options
)
:
null | false | object
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.
Name | Type | Description |
---|---|---|
$options |
Type | Description |
---|---|
null | false | object | Returns a valid handler object, null if setting did not exists and false if no handler was found |
- Static


prependExtensionSiteAccesses(
string | false $accessName
=
false, \eZINI | false | null $ini
=
false, true $globalDir
=
true, string | false | null $identifier
=
null, bool $order
=
true
)
:
void
Prepend extension siteaccesses
Name | Type | Description |
---|---|---|
$accessName | string | false | Optional access name, will use global if false |
$ini | \eZINI | false | null | |
$globalDir | true | |
$identifier | string | false | null | See {@link eZExtension::prependSiteAccess()} |
$order | bool | Prepend extensions in reverse order by setting this to false |


prependSiteAccess(
string $extension, string | false $accessName
=
false, \eZINI | false | null $ini
=
false, true $globalDir
=
true, string | false | null $identifier
=
null
)
:
void
Prepend siteaccess for specified extension
Name | Type | Description |
---|---|---|
$extension | string | Name of extension (folder name) |
$accessName | string | false | Optional access name, will use global if false |
$ini | \eZINI | false | null | |
$globalDir | true | |
$identifier | string | false | null | 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 |