size = null; $this->maxChars = null; $this->default = ""; } protected function renderInput($entry) { return; } protected function renderStatic($entry) { if ($this->wiki->UserIsInGroup('admins') ||$this->wiki->UserIsInGroup('Employeur') ||$this->wiki->UserIsInGroup('Coordination') ) { return "Inscrire a cette formation"; } else { return "Faut etre dans le bon groupe"; } } public function formatValuesBeforeSave($entry) { return ''; } // change return of this method to keep compatible with php 7.3 (mixed is not managed) #[\ReturnTypeWillChange] public function jsonSerialize() { return array_merge( parent::jsonSerialize(), [ 'reservation_button' => ' Je profite de ce trajet' ] ); } }