PHP Class Newscoop\Services\PublicationService

Show file Open project: sourcefabric/newscoop Class Usage Examples

Protected Properties

Property Type Description
$cacheService CacheService Cache Service
$em Doctrine\ORM\EntityManager Entity Manager
$publication Newscoop\Entity\Publication Publication object
$publicationAlias Newscoop\Entity\Aliases Alias object
$publicationMetadata array Publication metadata.

Public Methods

Method Description
__construct ( EntityManager $em, CacheService $cacheService ) Construct Publication Service
getPublication ( ) : Publication Get Publication object
getPublicationAlias ( ) : Aliases Get used Aliases object - connected with choosen publication
getPublicationMetadata ( ) : array Get publication metadata
publicationResolver ( Request $request ) : Publication Resolve publication from provided data
setPublication ( Publication $publication ) Set Publication object
setPublicationAlias ( Aliases $alias ) Set used Aliases object - connected with choosen publication

Method Details

__construct() public method

Construct Publication Service
public __construct ( EntityManager $em, CacheService $cacheService )
$em Doctrine\ORM\EntityManager Entity Manager
$cacheService CacheService Cache Service

getPublication() public method

Get Publication object
public getPublication ( ) : Publication
return Newscoop\Entity\Publication Publication entity object

getPublicationAlias() public method

Get used Aliases object - connected with choosen publication
public getPublicationAlias ( ) : Aliases
return Newscoop\Entity\Aliases Aliases entity object

getPublicationMetadata() public method

Get publication metadata
public getPublicationMetadata ( ) : array
return array publication metadata

publicationResolver() public method

Resolve publication from provided data
public publicationResolver ( Request $request ) : Publication
$request Symfony\Component\HttpFoundation\Request Request object
return Newscoop\Entity\Publication $publication Publication entity object

setPublication() public method

Set Publication object
public setPublication ( Publication $publication )
$publication Newscoop\Entity\Publication Publication entity object

setPublicationAlias() public method

Set used Aliases object - connected with choosen publication
public setPublicationAlias ( Aliases $alias )
$alias Newscoop\Entity\Aliases Aliases entity object

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

$publication protected property

Publication object
protected Publication,Newscoop\Entity $publication
return Newscoop\Entity\Publication

$publicationAlias protected property

Alias object
protected Aliases,Newscoop\Entity $publicationAlias
return Newscoop\Entity\Aliases

$publicationMetadata protected property

Publication metadata.
protected array $publicationMetadata
return array