PHP Class Ojs\CoreBundle\Service\Twig\OjsExtension

Inheritance: extends Twig_Extension
Afficher le fichier Open project: ojs/ojs

Méthodes publiques

Méthode Description
__construct ( EntityManager $em = null, Symfony\Component\Routing\RouterInterface $router = null, Symfony\Component\Translation\TranslatorInterface $translator = null, JournalService $journalService = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, Symfony\Component\HttpFoundation\Session\Session $session = null, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
apiKey ( ) : string Get current user's api key
decode ( $string ) : string Basic encoding
encode ( $string ) : string Basic encoding
fileType ( integer $arg ) : string Return file type string from given filetype integer value
generateBreadcrumb ( null $list = null ) : string $list = array( array('link'=>'.
generateJournalUrl ( $journal )
getAdminPages ( ) : array Returns all AdminPage entities
getAuthorsInfo ( Author $author ) : string
getEntityObject ( $entityObjectName ) : object Returns entity object from entity name
getFilters ( )
getFunctions ( )
getJournal ( integer $journal_id ) : Journal
getName ( )
getSession ( $session_key ) : mixed
getStrToUpper ( $string ) : string
getUserClients ( ) : mixed
hasId ( mixed $needle, array $haystack ) : boolean
hasIdInObjects ( $needle, $haystack ) : boolean
isGrantedForPublisher ( ) : boolean Check if user is selected journal publisher manager
isSystemAdmin ( ) : boolean
issnValidateFilter ( string $issn ) : string
issueTextGenerate ( Issue $issue ) : string
popFilter ( array $array, mixed $element ) : array Removes specified element from a number indexed array
printYesNo ( $arg ) : string return translated "yes" or "no" statement after checking $arg
sanitize ( $string )
selectedJournal ( ) : boolean | Journal
twigEventDispatch ( $options )
userJournalRoles ( ) : Doctrine\Common\Collections\Collection

Method Details

__construct() public méthode

public __construct ( EntityManager $em = null, Symfony\Component\Routing\RouterInterface $router = null, Symfony\Component\Translation\TranslatorInterface $translator = null, JournalService $journalService = null, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage = null, Symfony\Component\HttpFoundation\Session\Session $session = null, Symfony\Component\HttpFoundation\RequestStack $requestStack, Symfony\Component\EventDispatcher\EventDispatcherInterface $eventDispatcher )
$em Doctrine\ORM\EntityManager
$router Symfony\Component\Routing\RouterInterface
$translator Symfony\Component\Translation\TranslatorInterface
$journalService Ojs\JournalBundle\Service\JournalService
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$session Symfony\Component\HttpFoundation\Session\Session
$requestStack Symfony\Component\HttpFoundation\RequestStack
$eventDispatcher Symfony\Component\EventDispatcher\EventDispatcherInterface

apiKey() public méthode

Get current user's api key
public apiKey ( ) : string
Résultat string

decode() public méthode

Basic encoding
public decode ( $string ) : string
$string
Résultat string

encode() public méthode

Basic encoding
public encode ( $string ) : string
$string
Résultat string

fileType() public méthode

Return file type string from given filetype integer value
public fileType ( integer $arg ) : string
$arg integer
Résultat string

generateBreadcrumb() public méthode

..','title'=>'...'), array('link'=>'...','title'=>'...') )
public generateBreadcrumb ( null $list = null ) : string
$list null
Résultat string

generateJournalUrl() public méthode

public generateJournalUrl ( $journal )

getAdminPages() public méthode

Returns all AdminPage entities
public getAdminPages ( ) : array
Résultat array

getAuthorsInfo() public méthode

public getAuthorsInfo ( Author $author ) : string
$author Ojs\JournalBundle\Entity\Author
Résultat string

getEntityObject() public méthode

Returns entity object from entity name
public getEntityObject ( $entityObjectName ) : object
$entityObjectName
Résultat object

getFilters() public méthode

public getFilters ( )

getFunctions() public méthode

public getFunctions ( )

getJournal() public méthode

public getJournal ( integer $journal_id ) : Journal
$journal_id integer
Résultat Ojs\JournalBundle\Entity\Journal

getName() public méthode

public getName ( )

getSession() public méthode

public getSession ( $session_key ) : mixed
$session_key
Résultat mixed

getStrToUpper() public méthode

public getStrToUpper ( $string ) : string
$string
Résultat string

getUserClients() public méthode

public getUserClients ( ) : mixed
Résultat mixed

hasId() public méthode

public hasId ( mixed $needle, array $haystack ) : boolean
$needle mixed
$haystack array
Résultat boolean

hasIdInObjects() public méthode

public hasIdInObjects ( $needle, $haystack ) : boolean
$needle
$haystack
Résultat boolean

isGrantedForPublisher() public méthode

Check if user is selected journal publisher manager
public isGrantedForPublisher ( ) : boolean
Résultat boolean

isSystemAdmin() public méthode

public isSystemAdmin ( ) : boolean
Résultat boolean

issnValidateFilter() public méthode

public issnValidateFilter ( string $issn ) : string
$issn string
Résultat string

issueTextGenerate() public méthode

public issueTextGenerate ( Issue $issue ) : string
$issue Ojs\JournalBundle\Entity\Issue
Résultat string

popFilter() public méthode

Removes specified element from a number indexed array
public popFilter ( array $array, mixed $element ) : array
$array array
$element mixed
Résultat array

printYesNo() public méthode

return translated "yes" or "no" statement after checking $arg
public printYesNo ( $arg ) : string
$arg
Résultat string

sanitize() public méthode

public sanitize ( $string )

selectedJournal() public méthode

public selectedJournal ( ) : boolean | Journal
Résultat boolean | Ojs\JournalBundle\Entity\Journal

twigEventDispatch() public méthode

public twigEventDispatch ( $options )

userJournalRoles() public méthode

public userJournalRoles ( ) : Doctrine\Common\Collections\Collection
Résultat Doctrine\Common\Collections\Collection