CoolCMS API

ProductSetCurrentPrice extends ProductSetCurrentPrice
in package

Read-only mapping over the view `cms_mod_eshop_product_set_current_prices`; never written. The composite PK is informational only (the view has no real PK constraint).

Attributes
#[Entity]
$readOnly: true
#[Table]
$name: 'cms_mod_eshop_product_set_current_prices'
#[TableAlias]
'productSetCurrentPrice'

Table of Contents

Properties

$currencyId  : int|null
$fromAmount  : int|null
$originalPrice  : string
$points  : int
$price  : string
$productSetId  : int|null
$publishedTime  : string|null
$userGroupId  : int|null

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.
getCurrencyId()  : int|null
getFromAmount()  : int|null
getOriginalPrice()  : string
getOriginalPriceAsFloat()  : float
getPoints()  : int
getPrice()  : string
getPriceAsFloat()  : float
getProductSetId()  : int|null
getPublishedTime()  : string|null
getUserGroupId()  : int|null
getTraitsRecursive()  : array<string, string>
Walks the trait list recursively and collects nested traits too.

Properties

$currencyId

protected int|null $currencyId = null
Attributes
#[Column]
$name: 'cms_system_currencies_currency_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$fromAmount

protected int|null $fromAmount = null
Attributes
#[Column]
$name: 'from_amount'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$originalPrice

protected string $originalPrice = '0.0000'
Attributes
#[Column]
$name: 'original_price'
$type: 'decimal'
$precision: 15
$scale: 4

$points

protected int $points = 0
Attributes
#[Column]
$name: 'points'
$type: 'integer'
$options: ['unsigned' => true]

$price

protected string $price = '0.0000'
Attributes
#[Column]
$name: 'price'
$type: 'decimal'
$precision: 15
$scale: 4

$productSetId

protected int|null $productSetId = null
Attributes
#[Column]
$name: 'cms_mod_eshop_product_sets_product_set_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

$publishedTime

protected string|null $publishedTime = null
Attributes
#[Column]
$name: 'published_time'
$type: 'string'
#[Id]
#[Identity]

$userGroupId

protected int|null $userGroupId = null
Attributes
#[Column]
$name: 'cms_system_user_groups_group_id'
$type: 'integer'
$options: ['unsigned' => true]
#[Id]
#[Identity]

Methods

__construct()

public __construct([int|null $productSetId = null ][, string|null $publishedTime = null ][, int|null $fromAmount = null ][, int|null $userGroupId = null ][, int|null $currencyId = null ][, string $price = '0.0000' ][, string $originalPrice = '0.0000' ][, int $points = 0 ]) : mixed
Parameters
$productSetId : int|null = null
$publishedTime : string|null = null
$fromAmount : int|null = null
$userGroupId : int|null = null
$currencyId : int|null = null
$price : string = '0.0000'
$originalPrice : string = '0.0000'
$points : int = 0

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>

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