You are here

function i18n_object_wrapper::set_field in Internationalization 7

Set field value to object/array

1 call to i18n_object_wrapper::set_field()
i18n_object_wrapper::set_tsid in ./i18n_object.inc
Set translation set id

File

./i18n_object.inc, line 43
i18n Object Class

Class

i18n_object_wrapper
Object wrapper

Code

function set_field($field, $value) {
  if (is_object($this->object)) {
    $this->object->{$field} = $value;
  }
  elseif (is_array($this->object)) {
    $this->object[$field] = $value;
  }
  return $this;
}