src/wcmf/lib/model/NodeUtil.php
public static function translateValue(PersistentObject $object, $valueName, $language, $itemDelim=", ") {
    $value = $object->getValue($valueName);
    // translate list values
    $value = ValueListProvider::translateValue($value, $object->getValueProperty($valueName, 'input_type'), $language, $itemDelim);
    // force set (the rendered value may not be satisfy validation rules)
    $object->setValue($valueName, $value, true);
  }
public static function translateValue(PersistentObject $object, $valueName, $language, $itemDelim=", ") {
    $value = $object->getValue($valueName);
    // translate list values
    $value = ValueListProvider::translateValue($value, $object->getValueProperty($valueName, 'input_type'), $language, $itemDelim);
    // force set (the rendered value may not be satisfy validation rules)
    $object->setValue($valueName, $value, true);
  }
public static function translateValue ( PersistentObject $ object , $ valueName , $ language , $ itemDelim = ", " ) { $ value = $ object -> getValue ( $ valueName ) ; // translate list values $ value = ValueListProvider :: translateValue ( $ value , $ object -> getValueProperty ( $ valueName , 'input_type' ) , $ language , $ itemDelim ) ; // force set (the rendered value may not be satisfy validation rules) $ object -> setValue ( $ valueName , $ value , true ) ; }
Translate a PersistentObject list value.
@param $object The object whose value to translate
@param $valueName The name of the value to translate
@param $language The language to use
@param $itemDelim Delimiter string for array values (optional, default: ", ")
Translate a PersistentObject list value .