Documentation

AbstractBaseProduct
in package

YetiForce shop AbstractBaseProduct class.

Table of Contents

$active  : bool
Is the product featured.
$category  : string
Product category.
$currencyCode  : string
Currency code.
$customFields  : array<string|int, mixed>
Custom Fields.
$customPricesLabel  : array<string|int, mixed>
Custom prices label.
$expirationDate  : string|null
Expiration date.
$featured  : bool
Is the product featured.
$label  : string
Product label.
$name  : string
Product name.
$paidPackage  : string|null
Paid package.
$prices  : array<string|int, int>
Price table depending on the size of the company.
$pricesType  : string
Price type (table,manual,selection).
$website  : string
Product website.
__construct()  : mixed
Construct.
analyzeConfiguration()  : array<string|int, mixed>
Analyze the configuration.
getAdditionalButtons()  : array<string|int, Vtiger_Link_Model>
Product modal additional buttons.
getCustomFields()  : array<string|int, mixed>
Get product custom fields.
getDescription()  : string
Get product description.
getImage()  : string
Get product image.
getIntroduction()  : string
Get product description.
getLabel()  : string
Get product label.
getName()  : string
Get product name.
getPeriodLabel()  : void
The period for which the service is purchased.
getPrice()  : int
Get product price.
getPriceLabel()  : string
Get price label.
getPriceType()  : string
Get price type.
getVariable()  : array<string|int, mixed>
Get variable product.
isCustom()  : bool
Is custom fields.
loadConfig()  : void
Loading configuration.
showAlert()  : array<string|int, mixed>
Show alert.
verify()  : array<string|int, mixed>
Verify the product.

Properties

$customPricesLabel

Custom prices label.

public array<string|int, mixed> $customPricesLabel = []

$prices

Price table depending on the size of the company.

public array<string|int, int> $prices = []

$pricesType

Price type (table,manual,selection).

public string $pricesType = 'table'

Methods

__construct()

Construct.

public __construct(string $name) : mixed
Parameters
$name : string
Return values
mixed

analyzeConfiguration()

Analyze the configuration.

public analyzeConfiguration() : array<string|int, mixed>
Return values
array<string|int, mixed>

getAdditionalButtons()

Product modal additional buttons.

public getAdditionalButtons() : array<string|int, Vtiger_Link_Model>
Return values
array<string|int, Vtiger_Link_Model>

getCustomFields()

Get product custom fields.

public getCustomFields() : array<string|int, mixed>
Return values
array<string|int, mixed>

getDescription()

Get product description.

public getDescription() : string
Return values
string

getIntroduction()

Get product description.

public getIntroduction() : string
Return values
string

getPeriodLabel()

The period for which the service is purchased.

public getPeriodLabel() : void
Return values
void

getPriceLabel()

Get price label.

public getPriceLabel(string $key) : string
Parameters
$key : string
Return values
string

getPriceType()

Get price type.

public getPriceType() : string
Return values
string

getVariable()

Get variable product.

public getVariable() : array<string|int, mixed>
Return values
array<string|int, mixed>

loadConfig()

Loading configuration.

public loadConfig(array<string|int, mixed> $config) : void
Parameters
$config : array<string|int, mixed>
Return values
void

showAlert()

Show alert.

public showAlert() : array<string|int, mixed>
Return values
array<string|int, mixed>

verify()

Verify the product.

public verify() : array<string|int, mixed>
Return values
array<string|int, mixed>

        

Search results