PHP Class Handler, ojs

User: kaylafitzsimmons Date: 2/9/16 Time: 8:44 PM
Show file Open project: pkp/ojs Class Usage Examples

Public Methods

Method Description
__construct ( ) Constructor
getTargetContext ( $request, &$journalsCount = null ) : mixed Returns a "best-guess" journal, based in the request data, if a request needs to have one in its context but may be in a site-level context as specified in the URL.

Method Details

__construct() public method

Constructor
public __construct ( )

getTargetContext() public method

Returns a "best-guess" journal, based in the request data, if a request needs to have one in its context but may be in a site-level context as specified in the URL.
public getTargetContext ( $request, &$journalsCount = null ) : mixed
$request Request
$journalsCount int Optional reference to receive journals count
return mixed Either a Journal or null if none could be determined.