コード例 #1
0
ファイル: decimal.php プロジェクト: cepharum/txf
 public function beforeValidating(model_editor $editor, model $item = null, $itemProperties, model_editor_field $field)
 {
     $itemProperties = parent::beforeValidating($editor, $item, $itemProperties, $field);
     $name = $editor->fieldToProperty($field->name());
     if (array_key_exists($name, $itemProperties)) {
         $itemProperties[$name] = static::internationalFormat($itemProperties[$name], true);
     }
     return $itemProperties;
 }