PHP 클래스 Ojs\CoreBundle\Service\Twig\OjsExtension

상속: extends Twig_Extension
파일 보기 프로젝트 열기: ojs/ojs

공개 메소드들

메소드 설명
__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

메소드 상세

__construct() 공개 메소드

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() 공개 메소드

Get current user's api key
public apiKey ( ) : string
리턴 string

decode() 공개 메소드

Basic encoding
public decode ( $string ) : string
$string
리턴 string

encode() 공개 메소드

Basic encoding
public encode ( $string ) : string
$string
리턴 string

fileType() 공개 메소드

Return file type string from given filetype integer value
public fileType ( integer $arg ) : string
$arg integer
리턴 string

generateBreadcrumb() 공개 메소드

..','title'=>'...'), array('link'=>'...','title'=>'...') )
public generateBreadcrumb ( null $list = null ) : string
$list null
리턴 string

generateJournalUrl() 공개 메소드

public generateJournalUrl ( $journal )

getAdminPages() 공개 메소드

Returns all AdminPage entities
public getAdminPages ( ) : array
리턴 array

getAuthorsInfo() 공개 메소드

public getAuthorsInfo ( Author $author ) : string
$author Ojs\JournalBundle\Entity\Author
리턴 string

getEntityObject() 공개 메소드

Returns entity object from entity name
public getEntityObject ( $entityObjectName ) : object
$entityObjectName
리턴 object

getFilters() 공개 메소드

public getFilters ( )

getFunctions() 공개 메소드

public getFunctions ( )

getJournal() 공개 메소드

public getJournal ( integer $journal_id ) : Journal
$journal_id integer
리턴 Ojs\JournalBundle\Entity\Journal

getName() 공개 메소드

public getName ( )

getSession() 공개 메소드

public getSession ( $session_key ) : mixed
$session_key
리턴 mixed

getStrToUpper() 공개 메소드

public getStrToUpper ( $string ) : string
$string
리턴 string

getUserClients() 공개 메소드

public getUserClients ( ) : mixed
리턴 mixed

hasId() 공개 메소드

public hasId ( mixed $needle, array $haystack ) : boolean
$needle mixed
$haystack array
리턴 boolean

hasIdInObjects() 공개 메소드

public hasIdInObjects ( $needle, $haystack ) : boolean
$needle
$haystack
리턴 boolean

isGrantedForPublisher() 공개 메소드

Check if user is selected journal publisher manager
public isGrantedForPublisher ( ) : boolean
리턴 boolean

isSystemAdmin() 공개 메소드

public isSystemAdmin ( ) : boolean
리턴 boolean

issnValidateFilter() 공개 메소드

public issnValidateFilter ( string $issn ) : string
$issn string
리턴 string

issueTextGenerate() 공개 메소드

public issueTextGenerate ( Issue $issue ) : string
$issue Ojs\JournalBundle\Entity\Issue
리턴 string

popFilter() 공개 메소드

Removes specified element from a number indexed array
public popFilter ( array $array, mixed $element ) : array
$array array
$element mixed
리턴 array

printYesNo() 공개 메소드

return translated "yes" or "no" statement after checking $arg
public printYesNo ( $arg ) : string
$arg
리턴 string

sanitize() 공개 메소드

public sanitize ( $string )

selectedJournal() 공개 메소드

public selectedJournal ( ) : boolean | Journal
리턴 boolean | Ojs\JournalBundle\Entity\Journal

twigEventDispatch() 공개 메소드

public twigEventDispatch ( $options )

userJournalRoles() 공개 메소드

public userJournalRoles ( ) : Doctrine\Common\Collections\Collection
리턴 Doctrine\Common\Collections\Collection