You are here

public function StringBase::setValues in Localization update 7.2

Implements StringInterface::setValues().

Overrides StringInterface::setValues

1 call to StringBase::setValues()
StringBase::__construct in includes/locale/StringBase.php
Constructs a new locale string object.

File

includes/locale/StringBase.php, line 152
Definition of StringBase.

Class

StringBase
Defines the locale string base class.

Code

public function setValues(array $values, $override = TRUE) {
  foreach ($values as $key => $value) {
    if (property_exists($this, $key) && ($override || !isset($this->{$key}))) {
      $this->{$key} = $value;
    }
  }
  return $this;
}