Open Monograph Press  1.1
 All Classes Namespaces Functions Variables Groups Pages
Validation Class Reference
Inheritance diagram for Validation:
PKPValidation

Static Public Member Functions

static isPressManager ($pressId=-1)
 
static isSeriesEditor ($pressId=-1)
 
- Static Public Member Functions inherited from PKPValidation
static canAdminister ($administeredUserId, $administratorUserId)
 
static checkCredentials ($username, $password)
 
static encryptCredentials ($username, $password, $encryption=false)
 
static generatePassword ($length=8)
 
static generatePasswordResetHash ($userId)
 
static isAuthorized ($roleId, $contextId=0)
 
static isLoggedIn ()
 
static isLoggedInAs ()
 
static isSiteAdmin ()
 
static & login ($username, $password, &$reason, $remember=false)
 
static logout ()
 
static redirectLogin ($message=null)
 
static & registerUserSession ($user, &$reason, $remember=false)
 
static suggestUsername ($firstName, $lastName)
 

Detailed Description

Class providing user validation/authentication operations.

Mock implementation of the Validation class for the PKPPageRouterTest.

See Also
PKPPageRouterTest

Definition at line 20 of file Validation.inc.php.

Member Function Documentation

static Validation::isPressManager (   $pressId = -1)
static

Shortcut for checking authorization as press manager.

Parameters
$pressIdint
Returns
boolean

Definition at line 27 of file Validation.inc.php.

References PKPValidation\isAuthorized().

static Validation::isSeriesEditor (   $pressId = -1)
static

Shortcut for checking authorization as series editor.

Parameters
$pressIdint
Returns
boolean

Definition at line 36 of file Validation.inc.php.

References PKPValidation\isAuthorized().


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