Method | Description | |
---|---|---|
__construct ( ) | Constructor | |
getDescription ( ) | ||
getDisplayName ( ) | ||
getEnabled ( ) | ||
getInstallSitePluginSettingsFile ( ) | ||
getName ( ) | ||
getUniqueSiteId ( ) : mixed | Get the unique site id. | |
getUsageEvent ( $hookName, $args ) | Get usage event and pass it to the registered plugins, if any. | |
isSitePlugin ( ) | ||
register ( $category, $path ) |
Method | Description | |
---|---|---|
buildUsageEvent ( $hookName, $args ) : array | Build an usage event. | |
getEventHooks ( ) : array | Get all hooks that must be used to generate usage events. | |
getHtmlPageAssocTypes ( ) : array | Get all assoc types that have their usage event produced by html page access. | |
getUsageEventData ( $hookName, $hookArgs, $request, $router, $templateMgr, $context ) : array | Get usage event details based on the passed hook. | |
isPubIdObjectType ( $pubObject ) : boolean | Whether or not the passed object is of a type that can have different public identifiers, like DOI, URN, etc. |
protected buildUsageEvent ( $hookName, $args ) : array | ||
$hookName | string | |
$args | array | |
return | array |
protected getEventHooks ( ) : array | ||
return | array |
abstract protected getHtmlPageAssocTypes ( ) : array | ||
return | array |
public getUniqueSiteId ( ) : mixed | ||
return | mixed | string or null |
public getUsageEvent ( $hookName, $args ) |
protected getUsageEventData ( $hookName, $hookArgs, $request, $router, $templateMgr, $context ) : array | ||
$hookName | string | |
$hookArgs | array | |
$request | PKPRequest | |
$router | PageRouter | |
$templateMgr | PKPTemplateManager | |
$context | Context | |
return | array | With the following data: DataObject the published object, boolean download success, integer used published object assoc type, string used published object id foreign keys lookup (all parent associated objects id, preceeded with a single letter to identify the object), string canonical url page, string canonical url operation, array with canonical url parameters. |
abstract protected isPubIdObjectType ( $pubObject ) : boolean | ||
$pubObject | DataObject | |
return | boolean |