dolibarr
9.0.0
|
Class ProductAttributeValue Used to represent a product attribute value. More...
Public Member Functions | |
__construct (DoliDB $db) | |
Constructor. More... | |
fetch ($valueid) | |
Gets a product attribute value. More... | |
fetchAllByProductAttribute ($prodattr_id, $only_used=false) | |
Returns all product attribute values of a product attribute. More... | |
create (User $user) | |
Creates a value for a product attribute. More... | |
update (User $user) | |
Updates a product attribute value. More... | |
delete () | |
Deletes a product attribute value. More... | |
deleteByFkAttribute ($fk_attribute) | |
Deletes all product attribute values by a product attribute id. More... | |
Class ProductAttributeValue Used to represent a product attribute value.
Definition at line 23 of file ProductAttributeValue.class.php.
ProductAttributeValue::__construct | ( | DoliDB | $db | ) |
Constructor.
Definition at line 60 of file ProductAttributeValue.class.php.
ProductAttributeValue::create | ( | User | $user | ) |
Creates a value for a product attribute.
User | $user | Object user |
Definition at line 151 of file ProductAttributeValue.class.php.
ProductAttributeValue::delete | ( | ) |
Deletes a product attribute value.
Definition at line 202 of file ProductAttributeValue.class.php.
ProductAttributeValue::deleteByFkAttribute | ( | $fk_attribute | ) |
Deletes all product attribute values by a product attribute id.
int | $fk_attribute | Product attribute id |
Definition at line 219 of file ProductAttributeValue.class.php.
ProductAttributeValue::fetch | ( | $valueid | ) |
Gets a product attribute value.
int | $valueid | Product attribute value id |
Definition at line 74 of file ProductAttributeValue.class.php.
ProductAttributeValue::fetchAllByProductAttribute | ( | $prodattr_id, | |
$only_used = false |
|||
) |
Returns all product attribute values of a product attribute.
int | $prodattr_id | Product attribute id |
bool | $only_used | Fetch only used attribute values |
Definition at line 105 of file ProductAttributeValue.class.php.
ProductAttributeValue::update | ( | User | $user | ) |
Updates a product attribute value.
User | $user | Object user |
Definition at line 180 of file ProductAttributeValue.class.php.