RelatedDataTable extends DataManager
FinalYes
Tags
Table of Contents
Constants
- MAX_LENGTH_BATCH_MYSQL_QUERY = 2048
Methods
- createCollection() : EO_RelatedData_Collection
- createObject() : EO_RelatedData
- deleteByDiscount() : void
- Deletes rows by discount id.
- deleteByDiscounts() : void
- Deletes rows by discounts.
- fillByDiscount() : void
- Fills table of related data by discount.
- getById() : EO_RelatedData_Result
- getByPrimary() : EO_RelatedData_Result
- getEntity() : EO_RelatedData_Entity
- getGiftsData() : array<string|int, mixed>
- Returns gift data which contains list of section id, element id. It's gifts for the discount.
- getList() : EO_RelatedData_Result
- getMap() : array<string|int, mixed>
- Returns entity map definition.
- getProductsData() : array<string|int, mixed>
- Returns main product data which contains list of section id, element id. It's main products for the discount.
- getTableName() : string
- Returns DB table name for entity.
- query() : EO_RelatedData_Query
- wakeUpCollection() : EO_RelatedData_Collection
- wakeUpObject() : EO_RelatedData
Constants
MAX_LENGTH_BATCH_MYSQL_QUERY
public
mixed
MAX_LENGTH_BATCH_MYSQL_QUERY
= 2048
Methods
createCollection()
public
static createCollection() : EO_RelatedData_Collection
Return values
EO_RelatedData_CollectioncreateObject()
public
static createObject([mixed $setDefaultValues = = 'true' ]) : EO_RelatedData
Parameters
- $setDefaultValues : mixed = = 'true'
Return values
EO_RelatedDatadeleteByDiscount()
Deletes rows by discount id.
public
static deleteByDiscount(int $discountId) : void
Parameters
- $discountId : int
-
Id of discount.
deleteByDiscounts()
Deletes rows by discounts.
public
static deleteByDiscounts(array<string|int, mixed> $discountIds) : void
Parameters
- $discountIds : array<string|int, mixed>
-
List of discount ids.
fillByDiscount()
Fills table of related data by discount.
public
static fillByDiscount(array<string|int, mixed> $discount) : void
Parameters
- $discount : array<string|int, mixed>
-
Discount.
getById()
public
static getById(mixed $id) : EO_RelatedData_Result
Parameters
- $id : mixed
Return values
EO_RelatedData_ResultgetByPrimary()
public
static getByPrimary(mixed $primary[, array<string|int, mixed> $parameters = = '[]' ]) : EO_RelatedData_Result
Parameters
- $primary : mixed
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_RelatedData_ResultgetEntity()
public
static getEntity() : EO_RelatedData_Entity
Return values
EO_RelatedData_EntitygetGiftsData()
Returns gift data which contains list of section id, element id. It's gifts for the discount.
public
static getGiftsData(array<string|int, mixed> $discount) : array<string|int, mixed>
Parameters
- $discount : array<string|int, mixed>
-
The discount.
Return values
array<string|int, mixed>getList()
public
static getList([array<string|int, mixed> $parameters = = '[]' ]) : EO_RelatedData_Result
Parameters
- $parameters : array<string|int, mixed> = = '[]'
Return values
EO_RelatedData_ResultgetMap()
Returns entity map definition.
public
static getMap() : array<string|int, mixed>
Return values
array<string|int, mixed>getProductsData()
Returns main product data which contains list of section id, element id. It's main products for the discount.
public
static getProductsData(array<string|int, mixed> $discount) : array<string|int, mixed>
Parameters
- $discount : array<string|int, mixed>
-
The discount.
Return values
array<string|int, mixed>getTableName()
Returns DB table name for entity.
public
static getTableName() : string
Return values
stringquery()
public
static query() : EO_RelatedData_Query
Return values
EO_RelatedData_QuerywakeUpCollection()
public
static wakeUpCollection(mixed $rows) : EO_RelatedData_Collection
Parameters
- $rows : mixed
Return values
EO_RelatedData_CollectionwakeUpObject()
public
static wakeUpObject(mixed $row) : EO_RelatedData
Parameters
- $row : mixed