You are here

private function CommerceFileLicenseEntity::_init_fields in Commerce File 7

Initialize all unset fields for default field langauage

1 call to CommerceFileLicenseEntity::_init_fields()
CommerceFileLicenseEntity::__construct in includes/commerce_file_license.entity.inc
Overridden __construct()

File

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

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

private function _init_fields() {
  $fieldNames = $this
    ->get_fieldNames();
  if (!empty($fieldNames)) {
    foreach ($fieldNames as $field_name) {
      if (!isset($this->{$field_name})) {
        $this
          ->_init_field_value($field_name);
      }
    }
  }
}