ILIAS  trunk Revision v12.0_alpha-377-g3641b37b9db
class.ilDclBooleanRecordFieldModel.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22{
27 public function parseExportValue($value): int
28 {
29 return $value ? 1 : 0;
30 }
31
32 public function getPlainText(): string
33 {
34 return $this->getValue() ? $this->lng->txt('yes') : $this->lng->txt('no');
35 }
36}
parseExportValue($value)
Function to parse incoming data from form input value $value.