Open Monograph Press  3.3.0
CoverHandler Class Reference
Inheritance diagram for CoverHandler:
PKPHandler

Public Member Functions

 authorize ($request, &$args, $roleAssignments)
 
 cover ($args, $request)
 
 getMonographId ()
 
 getPress ()
 
 setMonographId ($monographId)
 
 setPress ($press)
 
 thumbnail ($args, $request)
 
- Public Member Functions inherited from PKPHandler
 __construct ()
 
 addPolicy ($authorizationPolicy, $addToTop=false)
 
 addRoleAssignment ($roleIds, $operations)
 
 getApiToken ()
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
getDispatcher ()
 
 getFirstUserContext ($user, $contexts)
 
 getId ()
 
 getLastAuthorizationMessage ()
 
 getRoleAssignment ($roleId)
 
 getRoleAssignments ()
 
 getSiteRedirectContext ($request)
 
 getTargetContext ($request, &$contextsCount=null)
 
 index ($args, $request)
 
 initialize ($request)
 
 markRoleAssignmentsChecked ()
 
 requireSSL ()
 
 setApiToken ($apiToken)
 
 setDispatcher ($dispatcher)
 
 setEnforceRestrictedSite ($enforceRestrictedSite)
 
 setId ($id)
 
 setupTemplate ($request)
 
 validate ($requiredContexts=null, $request=null)
 

Data Fields

 $_press
 
 $monographId
 
- Data Fields inherited from PKPHandler
 $_authorizationDecisionManager
 
 $_checks = array()
 
 $_dispatcher
 
 $_enforceRestrictedSite = true
 
 $_id
 
 $_isBackendPage = false
 
 $_roleAssignments = array()
 
 $_roleAssignmentsChecked = false
 

Additional Inherited Members

- Static Public Member Functions inherited from PKPHandler
static getPageParamName ($rangeName)
 
static getRangeInfo ($request, $rangeName, $contextData=null)
 
static hashPageContext ($request, $contextData=array())
 
- Protected Attributes inherited from PKPHandler
 $_apiToken = null
 

Detailed Description

Component serving up cover images for submissions.

Definition at line 18 of file CoverHandler.inc.php.

Member Function Documentation

◆ authorize()

CoverHandler::authorize (   $request,
$args,
  $roleAssignments 
)
See also
PKPHandler::authorize()
Parameters
$requestPKPRequest
$argsarray
$roleAssignmentsarray

Reimplemented from PKPHandler.

Definition at line 37 of file CoverHandler.inc.php.

References PKPHandler\addPolicy().

◆ cover()

CoverHandler::cover (   $args,
  $request 
)

Serve the cover image for a published submission.

Definition at line 78 of file CoverHandler.inc.php.

References PKPHandler\getAuthorizedContextObject().

◆ getMonographId()

CoverHandler::getMonographId ( )

Get the monograph ID

Returns
int

Definition at line 55 of file CoverHandler.inc.php.

References $monographId.

◆ getPress()

CoverHandler::getPress ( )

Get the current press

Returns
Press

Definition at line 71 of file CoverHandler.inc.php.

References $_press.

◆ setMonographId()

CoverHandler::setMonographId (   $monographId)

Set the monograph ID

Parameters
$monographIdint

Definition at line 47 of file CoverHandler.inc.php.

References $monographId.

◆ setPress()

CoverHandler::setPress (   $press)

Set the current press

Parameters
$pressPress

Definition at line 63 of file CoverHandler.inc.php.

◆ thumbnail()

CoverHandler::thumbnail (   $args,
  $request 
)

Serve the cover thumbnail for a published submission.

Definition at line 96 of file CoverHandler.inc.php.

References PKPHandler\getAuthorizedContextObject().

Field Documentation

◆ $_press

$press CoverHandler::$_press

Press

Definition at line 23 of file CoverHandler.inc.php.

Referenced by getPress().

◆ $monographId

The CoverHandler::$monographId

monograph ID for this handler

Definition at line 29 of file CoverHandler.inc.php.

Referenced by getMonographId(), and setMonographId().


The documentation for this class was generated from the following file: