CoolCMS API

FeedProductCategoryRel extends FeedProductCategoryRel
in package

Textual mapping of a category to a value per feed (used by the `getCategories` action).

Tags
extends
Attributes
#[Entity]
#[Table]
$name: 'cms_mod_eshop_feed_product_category_rel'
#[TableAlias]
'feedProductCategoryRel'

Table of Contents

Properties

$category  : TCategory|null
$feed  : TFeed|null
$id  : int|null
$value  : string

Methods

__construct()  : mixed
callInitMethods()  : void
Calls `init{TraitName}()` for every used trait that defines such a method.
getAllTraits()  : array<string, string>
Returns all traits the class uses, including those used by parent classes and nested traits.
getCategory()  : TCategory|null
getFeed()  : TFeed|null
getId()  : int|null
getValue()  : string
isPersisted()  : bool
setCategory()  : $this
setFeed()  : $this
setId()  : $this
setValue()  : $this
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$category

protected TCategory|null $category = null
Attributes
#[EntityOf]
\App\UI\Admin\Eshop\Models\Entities\ProductCategory::class
#[JoinColumn]
$name: 'cms_mod_eshop_product_categories_category_id'
$referencedColumnName: 'category_id'
$nullable: false
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Admin\Eshop\Models\Entities\ProductCategory::class
$fetch: 'LAZY'

$feed

protected TFeed|null $feed = null
Attributes
#[EntityOf]
\App\UI\Admin\Eshop\Models\Entities\Feed::class
#[JoinColumn]
$name: 'cms_mod_eshop_feeds_feed_id'
$referencedColumnName: 'feed_id'
$nullable: false
$onDelete: 'CASCADE'
#[ManyToOne]
$targetEntity: \App\UI\Admin\Eshop\Models\Entities\Feed::class
$inversedBy: 'categoryRels'
$fetch: 'LAZY'

$id

protected int|null $id = null
Attributes
#[Column]
$name: 'feed_product_category_rel_id'
$type: 'integer'
$options: ['unsigned' => true]
#[GeneratedValue]
#[Id]

Methods

__construct()

public __construct([int|null $id = null ][, mixed $feed = null ][, mixed $category = null ][, string $value = '' ]) : mixed
Parameters
$id : int|null = null
$feed : mixed = null
$category : mixed = null
$value : string = ''

callInitMethods()

Calls `init{TraitName}()` for every used trait that defines such a method.

public callInitMethods() : void

getAllTraits()

Returns all traits the class uses, including those used by parent classes and nested traits.

public getAllTraits() : array<string, string>
Return values
array<string, string>

setCategory()

public setCategory(TCategory|null $category) : $this
Parameters
$category : TCategory|null
Return values
$this

setFeed()

public setFeed(TFeed|null $feed) : $this
Parameters
$feed : TFeed|null
Return values
$this

setId()

public setId(int|null $id) : $this
Parameters
$id : int|null
Return values
$this

setValue()

public setValue(string $value) : $this
Parameters
$value : string
Return values
$this

getTraitsRecursive()

Walks the trait list recursively and collects nested traits too.

private static getTraitsRecursive(array<string, string> $traits) : array<string, string>
Parameters
$traits : array<string, string>
Return values
array<string, string>
On this page

Search results