API docs     >     Extensions     >     ExtensionMgr

ExtensionMgr->getExtension

Description

getExtension ( $code, $objectId = NULL, $objectVersion = NULL, $objectSite = NULL )
Returns an instance of the specified Extension

Parameters

$code
string
Extension code
$objectId
int
(optional) Object Id
$objectVersion
int
(optional) Object version
$objectSite
int
(optional) Object Site

Returns

Extension|false
Extension or FALSE in case of an error