Nostromo supports a lot of field types including domain types like email or URL. The types are mapped to database types automatically. All field types have input sanitation, escaping on output and return controls to edit their values.
Name | Description |
---|---|
virtual | Fields that support a callable as getter and setter. Is not saved to the database. public function init() { parent::init(); $this->felder['ti_ort'] = ModelFieldVirtual::create('Ort')->onOutput(function () { return $this->ortsStringErzeugen(); })->onInput(function ($value) { $this->parseOrtsString($value); }); } // Usage $template = 'Parser-Text {ti_ort}'; echo $ticket->ti_ort; $ticket->ti_ort = 'Bauteil / Etage' |
Add Comment