You are here

protected function CommerceFileLicenseEntity::_set_field_value in Commerce File 7

Set field value

Return value

TRUE if set

2 calls to CommerceFileLicenseEntity::_set_field_value()
CommerceFileLicenseEntity::set_file in includes/commerce_file_license.entity.inc
Set file field item values
CommerceFileLicenseEntity::unlink_line_item in includes/commerce_file_license.entity.inc
Remove a line item

File

includes/commerce_file_license.entity.inc, line 501
Provides a base class for CommerceFileLicenseEntity.

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

protected function _set_field_value($field_name, $field_value = array()) {

  // ensure field is initialized
  $this
    ->_init_field_value($field_name);

  // set value via wrapper to ensure proper setting
  $wrapper = $this
    ->get_wrapper();
  $wrapper->{$field_name} = $field_value;
}