PHP Class Newscoop\Service\Implementation\TemplateSearchServiceDoctrine

Inheritance: extends AEntityBaseServiceDoctrine, implements Newscoop\Service\ITemplateSearchService
Datei anzeigen Open project: sourcefabric/newscoop

Public Properties

Property Type Description
$themesFolder string

Protected Properties

Property Type Description
$em Doctrine\ORM\EntityManager
$issueService Newscoop\Service\IIssueService
$outputSettingIssueService Newscoop\Service\IOutputSettingIssueService
$outputSettingSectionService Newscoop\Service\IOutputSettingSectionService
$sectionService Newscoop\Service\ISectionService

Public Methods

Method Description
getArticlePage ( Section | Int $section, Output | integer | string $output ) : string Get the page for article to be used as a template.
getErrorPage ( Issue | Int $issue, Output | integer | string $output ) : string Get the page for error to be used as a template.
getFrontPage ( $issue, $output )
getIssueService ( ) : Newscoop\Service\IIssueService Provides the Issue service.
getOutputSettingIssueService ( ) : Newscoop\Service\IOutputSettingIssueService Provides the Output setting issue service.
getOutputSettingSectionService ( ) : Newscoop\Service\IOutputSettingSectionService Provides the Output setting service.
getSectionPage ( Section | Int $section, Output | integer | string $output ) : string Get the page for section to be used as a template.
getSectionService ( ) : Newscoop\Service\ISectionService Provides the Section service.

Protected Methods

Method Description
_init_ ( ) * ---------------------------------------------------------------
getResourceFullPath ( Resource $resource ) : string Internal method, get the full path from an resource.

Method Details

_init_() protected method

* ---------------------------------------------------------------
protected _init_ ( )

getArticlePage() public method

Get the page for article to be used as a template.
public getArticlePage ( Section | Int $section, Output | integer | string $output ) : string
$section Newscoop\Entity\Section | Int The section object or the id of the issue for whom the template is needed.
$output Newscoop\Entity\Output | integer | string The object Output, the id or the Name of the Output for whom the template is needed.
return string The full path of the template.

getErrorPage() public method

Get the page for error to be used as a template.
public getErrorPage ( Issue | Int $issue, Output | integer | string $output ) : string
$issue Newscoop\Entity\Issue | Int The issue object or the id of the issue for whom the template is needed.
$output Newscoop\Entity\Output | integer | string The object Output, the id or the Name of the Output for whom the template is needed.
return string The full path of the template.

getFrontPage() public method

public getFrontPage ( $issue, $output )

getIssueService() public method

Provides the Issue service.
public getIssueService ( ) : Newscoop\Service\IIssueService
return Newscoop\Service\IIssueService The issue service to be used by this controller.

getOutputSettingIssueService() public method

Provides the Output setting issue service.
public getOutputSettingIssueService ( ) : Newscoop\Service\IOutputSettingIssueService
return Newscoop\Service\IOutputSettingIssueService The output setting issue service to be used by this controller.

getOutputSettingSectionService() public method

Provides the Output setting service.
public getOutputSettingSectionService ( ) : Newscoop\Service\IOutputSettingSectionService
return Newscoop\Service\IOutputSettingSectionService The output setting section service to be used by this controller.

getResourceFullPath() protected method

Internal method, get the full path from an resource.
protected getResourceFullPath ( Resource $resource ) : string
$resource Newscoop\Entity\Resource
return string

getSectionPage() public method

Get the page for section to be used as a template.
public getSectionPage ( Section | Int $section, Output | integer | string $output ) : string
$section Newscoop\Entity\Section | Int The section object or the id of the issue for whom the template is needed.
$output Newscoop\Entity\Output | integer | string The object Output, the id or the Name of the Output for whom the template is needed.
return string The full path of the template.

getSectionService() public method

Provides the Section service.
public getSectionService ( ) : Newscoop\Service\ISectionService
return Newscoop\Service\ISectionService The section service to be used by this controller.

Property Details

$em protected_oe property

protected Doctrine\ORM\EntityManager $em
return Doctrine\ORM\EntityManager

$issueService protected_oe property

protected IIssueService,Newscoop\Service $issueService
return Newscoop\Service\IIssueService

$outputSettingIssueService protected_oe property

protected IOutputSettingIssueService,Newscoop\Service $outputSettingIssueService
return Newscoop\Service\IOutputSettingIssueService

$outputSettingSectionService protected_oe property

protected IOutputSettingSectionService,Newscoop\Service $outputSettingSectionService
return Newscoop\Service\IOutputSettingSectionService

$sectionService protected_oe property

protected ISectionService,Newscoop\Service $sectionService
return Newscoop\Service\ISectionService

$themesFolder public_oe property

public string $themesFolder
return string