ProductTemplate Class Reference

Inheritance diagram for ProductTemplate:
Item CustomFieldsModel RedBeanModel BeanModel ObservableComponent

Public Member Functions

 __toString ()

Static Public Member Functions

static getByName ($name)
static getModuleClassName ()
static canSaveMetadata ()
static getDefaultMetadata ()
static isTypeDeletable ()
static getRollUpRulesType ()
static getGamificationRulesType ()

Data Fields

const TYPE_PRODUCT = 1
const TYPE_SERVICE = 2
const TYPE_SUBSCRIPTION = 3
const STATUS_INACTIVE = 1
const STATUS_ACTIVE = 2
const PRICE_FREQUENCY_ONE_TIME = 1
const PRICE_FREQUENCY_MONTHLY = 2
const PRICE_FREQUENCY_ANNUALLY = 3

Protected Member Functions

 beforeDelete ()
 beforeValidate ()

Static Protected Member Functions

static translatedAttributeLabels ($language)
static getLabel ($language=null)
static getPluralLabel ($language=null)

Detailed Description

Definition at line 37 of file ProductTemplate.php.


Member Function Documentation

static getByName ( name  )  [static]
Parameters:
string $name
Returns:
string

Reimplemented from Item.

Definition at line 59 of file ProductTemplate.php.

__toString (  ) 
Returns:
string

Reimplemented from RedBeanModel.

Definition at line 67 of file ProductTemplate.php.

static getModuleClassName (  )  [static]
Returns:
string

Reimplemented from RedBeanModel.

Definition at line 86 of file ProductTemplate.php.

static canSaveMetadata (  )  [static]
Returns:
bool

Reimplemented from RedBeanModel.

Definition at line 94 of file ProductTemplate.php.

static getDefaultMetadata (  )  [static]
Returns:
array

Reimplemented from Item.

Definition at line 102 of file ProductTemplate.php.

static isTypeDeletable (  )  [static]
Returns:
bool

Reimplemented from Item.

Definition at line 165 of file ProductTemplate.php.

static getRollUpRulesType (  )  [static]
Returns:
string

Definition at line 173 of file ProductTemplate.php.

static getGamificationRulesType (  )  [static]
Returns:
string

Reimplemented from Item.

Definition at line 181 of file ProductTemplate.php.

beforeDelete (  )  [protected]
Returns:
bool

Reimplemented from RedBeanModel.

Definition at line 189 of file ProductTemplate.php.

static translatedAttributeLabels ( language  )  [static, protected]
Returns:
array

Reimplemented from Item.

Definition at line 198 of file ProductTemplate.php.

static getLabel ( language = null  )  [static, protected]

Returns the display name for the model class.

Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from RedBeanModel.

Definition at line 221 of file ProductTemplate.php.

static getPluralLabel ( language = null  )  [static, protected]

Returns the display name for plural of the model class.

Parameters:
null | string $language
Returns:
dynamic label name based on module.

Reimplemented from RedBeanModel.

Definition at line 231 of file ProductTemplate.php.

beforeValidate (  )  [protected]

Sets the scenario for currencyvalue elements to positiveValue for the validation of the price using the rule in CurrencyValue

Returns:
bool

Reimplemented from RedBeanModel.

Definition at line 241 of file ProductTemplate.php.


The documentation for this class was generated from the following file:
 All Data Structures Functions Variables
Generated on Wed Dec 13 07:10:28 2017