PHP Class IssueAction, ojs

See also: Issue
Show file Open project: pkp/ojs Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor.
_roleAllowedPrePublicationAccess ( $journal ) : boolean Checks if this user is granted access to pre-publication galleys based on role based on their roles in the journal (i.e. Manager, Editor, etc).
allowedIssuePrePublicationAccess ( $journal ) : boolean Checks if this user is granted access to pre-publication issue galleys based on their roles in the journal (i.e. Manager, Editor, etc).
allowedPrePublicationAccess ( $journal, $article ) : boolean Checks if this user is granted reader access to pre-publication articles based on their roles in the journal (i.e. Manager, Editor, etc).
smartyPrintIssueId ( $params, &$smarty ) : string Smarty usage: {print_issue_id articleId="$articleId"}
subscribedDomain ( $journal, $issueId = null, $articleId = null ) : boolean Checks if remote client domain or ip is allowed
subscribedUser ( $journal, $issueId = null, $articleId = null ) : boolean Checks if user has subscription
subscriptionRequired ( &$issue, $journal = null ) : boolean Checks if subscription is required for viewing the issue

Method Details

__construct() public method

Constructor.
public __construct ( )

_roleAllowedPrePublicationAccess() public method

Checks if this user is granted access to pre-publication galleys based on role based on their roles in the journal (i.e. Manager, Editor, etc).
public _roleAllowedPrePublicationAccess ( $journal ) : boolean
$journal object
return boolean

allowedIssuePrePublicationAccess() public method

Checks if this user is granted access to pre-publication issue galleys based on their roles in the journal (i.e. Manager, Editor, etc).
public allowedIssuePrePublicationAccess ( $journal ) : boolean
$journal object
return boolean

allowedPrePublicationAccess() public method

Checks if this user is granted reader access to pre-publication articles based on their roles in the journal (i.e. Manager, Editor, etc).
public allowedPrePublicationAccess ( $journal, $article ) : boolean
$journal object
$article object
return boolean

smartyPrintIssueId() public method

Custom Smarty function for printing the issue id
public smartyPrintIssueId ( $params, &$smarty ) : string
return string

subscribedDomain() public method

Checks if remote client domain or ip is allowed
public subscribedDomain ( $journal, $issueId = null, $articleId = null ) : boolean
return boolean

subscribedUser() public method

Checks if user has subscription
public subscribedUser ( $journal, $issueId = null, $articleId = null ) : boolean
return boolean

subscriptionRequired() public method

Checks if subscription is required for viewing the issue
public subscriptionRequired ( &$issue, $journal = null ) : boolean
$issue Issue
$journal Journal
return boolean