PHP Class Ojs\CoreBundle\Controller\OjsController

Inheritance: extends Symfony\Bundle\FrameworkBundle\Controller\Controller
ファイルを表示 Open project: ojs/ojs

Protected Methods

Method Description
errorFlashBag ( $text ) : boolean
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 )
successFlashBag ( $text ) : boolean
throw404IfNotFound ( mixed $entity, string $message = 'Not Found' ) : boolean

Method Details

errorFlashBag() protected method

protected errorFlashBag ( $text ) : boolean
$text
return boolean

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

successFlashBag() protected method

protected successFlashBag ( $text ) : boolean
$text
return boolean

throw404IfNotFound() protected method

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