Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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'

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.