Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
DataObjectRequiredPolicy Class Reference
Inheritance diagram for DataObjectRequiredPolicy:
AuthorizationPolicy PublicationFormatRequiredPolicy ReviewAssignmentRequiredPolicy ReviewRoundRequiredPolicy SeriesEditorSubmissionRequiredPolicy SubmissionRequiredPolicy

Public Member Functions

 dataObjectEffect ()
 
 DataObjectRequiredPolicy ($request, &$args, $parameterName, $message=null, $operations=null)
 
 effect ()
 
getArgs ()
 
 getDataObjectId ()
 
getRequest ()
 
- Public Member Functions inherited from AuthorizationPolicy
 addAuthorizedContextObject ($assocType, &$authorizedObject)
 
 applies ()
 
 AuthorizationPolicy ($message=null)
 
 effect ()
 
getAdvice ($adviceType)
 
getAuthorizedContext ()
 
getAuthorizedContextObject ($assocType)
 
 hasAdvice ($adviceType)
 
 hasAuthorizedContextObject ($assocType)
 
 setAdvice ($adviceType, &$adviceContent)
 
 setAuthorizedContext (&$authorizedContext)
 

Additional Inherited Members

- Public Attributes inherited from AuthorizationPolicy
 $_advice = array()
 
 $_authorizedContext = array()
 

Detailed Description

Abstract base class for policies that check for a data object from a parameter.

Definition at line 17 of file DataObjectRequiredPolicy.inc.php.

Member Function Documentation

DataObjectRequiredPolicy::dataObjectEffect ( )

Test the data object's effect

Returns
AUTHORIZATION_DENY|AUTHORIZATION_ACCEPT

Definition at line 100 of file DataObjectRequiredPolicy.inc.php.

DataObjectRequiredPolicy::DataObjectRequiredPolicy (   $request,
$args,
  $parameterName,
  $message = null,
  $operations = null 
)

Constructor

Parameters
$requestPKPRequest
$argsarray request parameters
$parameterNamestring the request parameter we expect
$messagestring
$operationsarray Optional list of operations for which this check takes effect. If specified, operations outside this set will not be checked against this policy.

Definition at line 69 of file DataObjectRequiredPolicy.inc.php.

DataObjectRequiredPolicy::effect ( )
& DataObjectRequiredPolicy::getArgs ( )

Return the request arguments

Returns
array

Definition at line 57 of file DataObjectRequiredPolicy.inc.php.

DataObjectRequiredPolicy::getDataObjectId ( )
& DataObjectRequiredPolicy::getRequest ( )

Return the request.

Returns
PKPRequest

Definition at line 49 of file DataObjectRequiredPolicy.inc.php.


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