You are here

public function StringBase::getValues in Localization update 7.2

Implements StringInterface::getValues().

Overrides StringInterface::getValues

File

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

Class

StringBase
Defines the locale string base class.

Code

public function getValues(array $fields) {
  $values = array();
  foreach ($fields as $field) {
    if (isset($this->{$field})) {
      $values[$field] = $this->{$field};
    }
  }
  return $values;
}