Source of file FixedHiddenField.php
Size: 0,450 Bytes - Last Modified: 2021-12-23T10:00:38+00:00
/var/www/docs.ssmods.com/process/src/code/fields/FixedHiddenField.php
1234567891011121314151617181920212223 | <?php /** * A field whose value don't change once it's set (useful when loading data from * keeps messing with one of your field) * * @author Koala */ class FixedHiddenField extends HiddenField { protected $fixed =false; public function setValue($value) { if($this->fixed) { return $this; } if($value) { $this->fixed = true; } return parent::setValue($value); } } |