PHP Класс PKPUsageEventPlugin, pkp-lib

Наследование: extends GenericPlugin
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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 )

Защищенные методы

Метод Описание
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.

Описание методов

__construct() публичный Метод

Constructor
public __construct ( )

buildUsageEvent() защищенный Метод

Build an usage event.
protected buildUsageEvent ( $hookName, $args ) : array
$hookName string
$args array
Результат array

getDescription() публичный Метод

public getDescription ( )

getDisplayName() публичный Метод

public getDisplayName ( )

getEnabled() публичный Метод

public getEnabled ( )

getEventHooks() защищенный Метод

Get all hooks that must be used to generate usage events.
protected getEventHooks ( ) : array
Результат array

getHtmlPageAssocTypes() абстрактный защищенный Метод

Get all assoc types that have their usage event produced by html page access.
abstract protected getHtmlPageAssocTypes ( ) : array
Результат array

getInstallSitePluginSettingsFile() публичный Метод

getName() публичный Метод

public getName ( )

getUniqueSiteId() публичный Метод

Get the unique site id.
public getUniqueSiteId ( ) : mixed
Результат mixed string or null

getUsageEvent() публичный Метод

Get usage event and pass it to the registered plugins, if any.
public getUsageEvent ( $hookName, $args )

getUsageEventData() защищенный Метод

Subclasses should extend to implement application specifics.
См. также: PKPUsageEventPlugin::buildUsageEvent()
protected getUsageEventData ( $hookName, $hookArgs, $request, $router, $templateMgr, $context ) : array
$hookName string
$hookArgs array
$request PKPRequest
$router PageRouter
$templateMgr PKPTemplateManager
$context Context
Результат 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.

isPubIdObjectType() абстрактный защищенный Метод

Whether or not the passed object is of a type that can have different public identifiers, like DOI, URN, etc.
abstract protected isPubIdObjectType ( $pubObject ) : boolean
$pubObject DataObject
Результат boolean

isSitePlugin() публичный Метод

public isSitePlugin ( )

register() публичный Метод

public register ( $category, $path )