kernel/classes/ezproductcollectionitemoption.php
File containing the eZProductCollectionItemOption class.
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Package
- kernel
- Version
- 4.6.0
\eZProductCollectionItemOption
File containing the eZProductCollectionItemOption class.
- Parent(s)
- \eZPersistentObject
- Copyright
- Copyright (C) 1999-2011 eZ Systems AS. All rights reserved.
- License
- eZ Business Use License Agreement Version 2.0
- Version
- 4.6.0
Properties


$PersistentDataDirty= ''
- Type
- n/a
- Inherited_from
- \eZPersistentObject::$$PersistentDataDirty
Methods


__clone(
)
:
void
Clones the collection item option object and returns it.
The ID of the clone is reset so that the clone can be saved


attribute(
$attr, $noFunction
=
false
)
:
void
Name | Type | Description |
---|---|---|
$attr | ||
$noFunction |


cleanupList(
array $itemIDList
)
:
void
Removes all product collections options which are related to the collection items specified in the parameter array
Name | Type | Description |
---|---|---|
$itemIDList | array | Array of eZProductCollectionItem IDs |


copy(
int $collectionItemID
)
:
\eZProductCollectionItemOption
Copies the collection object item option. The copy will point to the collection item parameter $collectionItemID.
Name | Type | Description |
---|---|---|
$collectionItemID | int | Collection item ID to match the option to |
Type | Description |
---|---|
\eZProductCollectionItemOption | The new object |


count(
$def, $conds
=
null, $field
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$conds | ||
$field |


create(
int $productCollectionItemID, int $optionItemID, string $optionName, string $optionValue, string $optionPrice, int $attributeID
)
:
void
Creates an eZProductCollectionItem
Name | Type | Description |
---|---|---|
$productCollectionItemID | int | |
$optionItemID | int | |
$optionName | string | |
$optionValue | string | |
$optionPrice | string | |
$attributeID | int |


eZPersistentObject(
$row
)
:
void
Name | Type | Description |
---|---|---|
$row |


eZProductCollectionItemOption(
array $row
)
:
void
Initialized an eZProductCollectionItemOption object with the given attribute array
Name | Type | Description |
---|---|---|
$row | array | Array of object attributes |


fetchList(
int $productCollectionItemID, bool $asObject
=
true
)
:
\array(eZProductCollectionItemOption)
Fetches eZProductCollectionItemOption items that match the given item ID, sorted by ascending order of option ID
Name | Type | Description |
---|---|---|
$productCollectionItemID | int | |
$asObject | bool |
Type | Description |
---|---|
\array(eZProductCollectionItemOption) |


fetchObject(
$def, $field_filters, $conds, $asObject
=
true, $grouping
=
null, $custom_fields
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$field_filters | ||
$conds | ||
$asObject | ||
$grouping | ||
$custom_fields |


fetchObjectList(
$def, $field_filters
=
null, $conds
=
null, $sorts
=
null, $limit
=
null, $asObject
=
true, $grouping
=
false, $custom_fields
=
null, $custom_tables
=
null, $custom_conds
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$field_filters | ||
$conds | ||
$sorts | ||
$limit | ||
$asObject | ||
$grouping | ||
$custom_fields | ||
$custom_tables | ||
$custom_conds |


fill(
$row
)
:
void
Name | Type | Description |
---|---|---|
$row |


getShortAttributeName(
$db, $def, $attrName
)
:
void
Name | Type | Description |
---|---|---|
$db | ||
$def | ||
$attrName |


handleRows(
$rows, $class_name, $asObject
)
:
void
Name | Type | Description |
---|---|---|
$rows | ||
$class_name | ||
$asObject |


hasAttribute(
$attr
)
:
void
Name | Type | Description |
---|---|---|
$attr |


newObjectOrder(
$def, $orderField, $conditions
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$orderField | ||
$conditions |


remove(
$conditions
=
null, $extraConditions
=
null
)
:
void
Name | Type | Description |
---|---|---|
$conditions | ||
$extraConditions |


removeObject(
$def, $conditions
=
null, $extraConditions
=
null
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$conditions | ||
$extraConditions |


reorderObject(
$def, $orderField, $conditions, $down
=
true
)
:
void
Name | Type | Description |
---|---|---|
$def | ||
$orderField | ||
$conditions | ||
$down |


replaceFieldsWithShortNames(
$db, $fieldDefs, $fields
)
:
void
Name | Type | Description |
---|---|---|
$db | ||
$fieldDefs | ||
$fields |


setAttribute(
$attr, $val
)
:
void
Name | Type | Description |
---|---|---|
$attr | ||
$val |


setHasDirtyData(
$hasDirtyData
)
:
void
Name | Type | Description |
---|---|---|
$hasDirtyData |


store(
$fieldFilters
=
null
)
:
void
Name | Type | Description |
---|---|---|
$fieldFilters |


storeObject(
$obj, $fieldFilters
=
null
)
:
void
Name | Type | Description |
---|---|---|
$obj | ||
$fieldFilters |


swapRow(
$table, $keys, $order_id, $rows, $id1, $id2
)
:
void
Name | Type | Description |
---|---|---|
$table | ||
$keys | ||
$order_id | ||
$rows | ||
$id1 | ||
$id2 |


sync(
$fieldFilters
=
null
)
:
void
Name | Type | Description |
---|---|---|
$fieldFilters |