Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/db/dbitem.php
Show First 20 Lines • Show All 124 Lines • ▼ Show 20 Line(s) | |||||
$res = $value; | $res = $value; | ||||
$formatter = $this->GetFieldOption($field_name, 'formatter'); | $formatter = $this->GetFieldOption($field_name, 'formatter'); | ||||
if ( $formatter ) { | if ( $formatter ) { | ||||
/** @var kFormatter $formatter */ | /** @var kFormatter $formatter */ | ||||
$formatter = $this->Application->recallObject($formatter); | $formatter = $this->Application->recallObject($formatter); | ||||
if ( $formatter instanceof kMultiLanguage && strpos((string)$format, 'no_default') === false ) { | |||||
$format = rtrim('no_default;' . $format, ';'); | |||||
} | |||||
$res = $formatter->Format($value, $field_name, $this, $format); | $res = $formatter->Format($value, $field_name, $this, $format); | ||||
} | } | ||||
return $res; | return $res; | ||||
} | } | ||||
/** | /** | ||||
* Sets original field value (useful for custom virtual fields) | * Sets original field value (useful for custom virtual fields) | ||||
▲ Show 20 Lines • Show All 1461 Lines • Show Last 20 Lines |