CoolCMS API

AdvertCategoryInterface extends PricedCategoryInterface

Category of the advert modules (Bazaar adverts, Comcat company listings): a nested-set node with a price list and parameter targeting.

Lets the shared category sync traits (CategoryParameterRelSyncTrait, CategoryPriceSyncTrait) work with the category of either module and either layer (the save path gets the Admin variant, find() the Api one).

Table of Contents

Methods

getCategoryParameterRels()  : Collection<int, object>
Elements are {@see CategoryParameterRelInterface}; declared by the concrete layer entities (the shared class leaves the mapping to them).
getForFree()  : bool
getId()  : int|null
getLevel()  : int
getLft()  : int
getParentId()  : int|null
getPrices()  : Collection<int, object>
Elements are {@see CategoryPriceInterface}; callers check it with `instanceof`.
getRgt()  : int
getUseDefaultParameters()  : bool
`true` = the advert form uses the global default parameters instead of the category rels.

Methods

getCategoryParameterRels()

Elements are {@see CategoryParameterRelInterface}; declared by the concrete layer entities (the shared class leaves the mapping to them).

public getCategoryParameterRels() : Collection<int, object>
Return values
Collection<int, object>

getPrices()

Elements are {@see CategoryPriceInterface}; callers check it with `instanceof`.

public getPrices() : Collection<int, object>
Return values
Collection<int, object>

getUseDefaultParameters()

`true` = the advert form uses the global default parameters instead of the category rels.

public getUseDefaultParameters() : bool
Return values
bool
On this page

Search results