dolibarr  7.0.0-beta
Public Member Functions | List of all members
ProductAttributeValue Class Reference

Class ProductAttributeValue Used to represent a product attribute value. More...

Public Member Functions

 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 ()
 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...
 

Detailed Description

Class ProductAttributeValue Used to represent a product attribute value.

Definition at line 23 of file ProductAttributeValue.class.php.

Member Function Documentation

ProductAttributeValue::create ( )

Creates a value for a product attribute.

Returns
int <0 KO >0 OK

Definition at line 145 of file ProductAttributeValue.class.php.

ProductAttributeValue::delete ( )

Deletes a product attribute value.

Returns
int <0 KO, >0 OK

Definition at line 196 of file ProductAttributeValue.class.php.

ProductAttributeValue::deleteByFkAttribute (   $fk_attribute)

Deletes all product attribute values by a product attribute id.

Parameters
int$fk_attributeProduct attribute id
Returns
int <0 KO, >0 OK

Definition at line 213 of file ProductAttributeValue.class.php.

ProductAttributeValue::fetch (   $valueid)

Gets a product attribute value.

Parameters
int$valueidProduct attribute value id
Returns
int <0 KO, >0 OK

Definition at line 69 of file ProductAttributeValue.class.php.

References getEntity().

ProductAttributeValue::fetchAllByProductAttribute (   $prodattr_id,
  $only_used = false 
)

Returns all product attribute values of a product attribute.

Parameters
int$prodattr_idProduct attribute id
bool$only_usedFetch only used attribute values
Returns
ProductAttributeValue[]

Definition at line 100 of file ProductAttributeValue.class.php.

ProductAttributeValue::update ( User  $user)

Updates a product attribute value.

Parameters
User$userObject user
Returns
int <0 if KO, >0 if OK

Definition at line 174 of file ProductAttributeValue.class.php.


The documentation for this class was generated from the following file: