PHP Class Newscoop\Services\ThemesService

Inheritance: implements Newscoop\ThemesServiceInterface
Show file Open project: sourcefabric/newscoop

Protected Properties

Property Type Description
$cacheService CacheService Cache service
$em Doctrine\ORM\EntityManager Entity Manager
$issueService Newscoop\IssueServiceInterface Issue service
$publicationService PublicationService Publication service

Public Methods

Method Description
__construct ( Newscoop\IssueServiceInterface $issueService, CacheService $cacheService, PublicationService $publicationService, EntityManager $em ) Construct
findByIssueAndOutput ( Issue $issue, Output $output ) : string | null Finds output for issue by issue and output
findByName ( string $name ) : string | null Finds output by name
getThemePath ( ) {@inheritDoc}

Method Details

__construct() public method

Construct
public __construct ( Newscoop\IssueServiceInterface $issueService, CacheService $cacheService, PublicationService $publicationService, EntityManager $em )
$issueService Newscoop\IssueServiceInterface
$cacheService CacheService
$publicationService PublicationService
$em Doctrine\ORM\EntityManager

findByIssueAndOutput() public method

Finds output for issue by issue and output
public findByIssueAndOutput ( Issue $issue, Output $output ) : string | null
$issue Newscoop\Entity\Issue Issue object
$output Newscoop\Entity\Output Output object
return string | null

findByName() public method

Finds output by name
public findByName ( string $name ) : string | null
$name string Output name ('Web' in this case)
return string | null

getThemePath() public method

{@inheritDoc}
public getThemePath ( )

Property Details

$cacheService protected property

Cache service
protected CacheService,Newscoop\Services $cacheService
return CacheService

$em protected property

Entity Manager
protected EntityManager,Doctrine\ORM $em
return Doctrine\ORM\EntityManager

$issueService protected property

Issue service
protected IssueServiceInterface,Newscoop $issueService
return Newscoop\IssueServiceInterface

$publicationService protected property

Publication service
protected PublicationService,Newscoop\Services $publicationService
return PublicationService