CoolCMS API

CategoryRelCollectionTrait

Tags
template

Table of Contents

Properties

$categoryRels  : Collection<int, TCategoryRel>

Methods

addCategoryRel()  : $this
categoryRelCollectionInit()  : void
getCategories()  : array<int, object>
getCategoryRels()  : Collection<int, TCategoryRel>
removeCategoryRel()  : $this
setCategoryRels()  : $this

Properties

Methods

addCategoryRel()

public addCategoryRel(TCategoryRel $categoryRel) : $this
Parameters
$categoryRel : TCategoryRel
Return values
$this

getCategories()

public getCategories() : array<int, object>
Return values
array<int, object> —

categories of the rels (a rel without a loaded category is skipped)

getCategoryRels()

public getCategoryRels() : Collection<int, TCategoryRel>
Return values
Collection<int, TCategoryRel>

removeCategoryRel()

public removeCategoryRel(TCategoryRel $categoryRel) : $this
Parameters
$categoryRel : TCategoryRel
Return values
$this

setCategoryRels()

public setCategoryRels(Collection<int, TCategoryRel>|array<int, TCategoryRel> $categoryRels) : $this
Parameters
$categoryRels : Collection<int, TCategoryRel>|array<int, TCategoryRel>
Return values
$this
On this page

Search results