CoolCMS API

PageCollectionTrait

Tags
template

Table of Contents

Properties

$pages  : Collection<int, TPage>

Methods

addPage()  : $this
getPage()  : TPage|null
getPages()  : Collection<int, TPage>
pageCollectionInit()  : void
removePage()  : $this
setPages()  : $this

Properties

Methods

addPage()

public addPage(TPage $page) : $this
Parameters
$page : TPage
Return values
$this

getPage()

public getPage(int $pageId) : TPage|null
Parameters
$pageId : int
Return values
TPage|null

getPages()

public getPages() : Collection<int, TPage>
Return values
Collection<int, TPage>

removePage()

public removePage(TPage $page) : $this
Parameters
$page : TPage
Return values
$this

setPages()

public setPages(Collection<int, TPage>|array<int, TPage> $pages) : $this
Parameters
$pages : Collection<int, TPage>|array<int, TPage>
Return values
$this
On this page

Search results