PHP Class Ojs\JournalBundle\Service\JournalService

Mostrar archivo Open project: ojs/ojs Class Usage Examples

Public Methods

Method Description
__construct ( EntityManager $em, Symfony\Component\HttpFoundation\Session\Session $session, Router $router, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\HttpFoundation\RequestStack $requestStack, $defaultPublisherSlug )
generateUrl ( Journal $journal ) : string
getJournalLocales ( ) : array
getSelectedJournal ( boolean | true $useCache = true ) : boolean | Journal
getSelectedJournalRoles ( Journal $journal = null ) : Doctrine\Common\Collections\Collection

Method Details

__construct() public method

public __construct ( EntityManager $em, Symfony\Component\HttpFoundation\Session\Session $session, Router $router, Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface $tokenStorage, Symfony\Component\HttpFoundation\RequestStack $requestStack, $defaultPublisherSlug )
$em Doctrine\ORM\EntityManager
$session Symfony\Component\HttpFoundation\Session\Session
$router Symfony\Bundle\FrameworkBundle\Routing\Router
$tokenStorage Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface
$requestStack Symfony\Component\HttpFoundation\RequestStack
$defaultPublisherSlug

generateUrl() public method

public generateUrl ( Journal $journal ) : string
$journal Ojs\JournalBundle\Entity\Journal
return string

getJournalLocales() public method

public getJournalLocales ( ) : array
return array

getSelectedJournal() public method

public getSelectedJournal ( boolean | true $useCache = true ) : boolean | Journal
$useCache boolean | true
return boolean | Ojs\JournalBundle\Entity\Journal

getSelectedJournalRoles() public method

public getSelectedJournalRoles ( Journal $journal = null ) : Doctrine\Common\Collections\Collection
$journal Ojs\JournalBundle\Entity\Journal
return Doctrine\Common\Collections\Collection