PHP Class Ojs\ApiBundle\Controller\ApiController

Inheritance: extends FOS\RestBundle\Controller\FOSRestController
Show file Open project: ojs/ojs

Protected Methods

Method Description
isGranted ( mixed $attributes, mixed $object = null, $field = null ) : boolean Checks if the attributes are granted against the current authentication token and optionally supplied object.
isGrantedForPublisher ( Publisher $publisher )
throw404IfNotFound ( mixed $entity, string $message = 'Not Found' ) : boolean

Method Details

isGranted() protected method

Checks if the attributes are granted against the current authentication token and optionally supplied object.
protected isGranted ( mixed $attributes, mixed $object = null, $field = null ) : boolean
$attributes mixed The attributes
$object mixed The object
$field
return boolean

isGrantedForPublisher() protected method

protected isGrantedForPublisher ( Publisher $publisher )
$publisher Ojs\JournalBundle\Entity\Publisher

throw404IfNotFound() protected method

protected throw404IfNotFound ( mixed $entity, string $message = 'Not Found' ) : boolean
$entity mixed
$message string custom not found message
return boolean