OK, jetzt stehe ich vor weiteren Fragezeichen: wo füge ich den folgenden code 
überhaupt ein?

$message = 
\TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance(\TYPO3\CMS\Core\Messaging\FlashMessage::class,
  'My message text',
  'Message Header', // [optional] the header
  \TYPO3\CMS\Core\Messaging\FlashMessage::WARNING, // [optional] the severity 
defaults to \TYPO3\CMS\Core\Messaging\FlashMessage::OK
  true // [optional] whether the message should be stored in the session or 
only in the \TYPO3\CMS\Core\Messaging\FlashMessageQueue object (default is 
false)
);

Ich verstehe den code, keine Frage, aber ich weiß nicht wie ich das jetzt mit meiner 'eval' Klasse in der der code steht überhaupt zusammenbringe.
class IPv4Evaluation
{

   /**
    * Server-side validation/evaluation on saving the record
    *
    * @param string $value The field value to be evaluated
    * @param string $is_in The "is_in" value of the field configuration from TCA
    * @param bool $set Boolean defining if the value is written to the database 
or not.
    * @return string Evaluated field value
    */
   public function evaluateFieldValue($value, $is_in, &$set)
   {
                if (!filter_var($value, FILTER_VALIDATE_IP)){
                        $value = 'Fehlerhafte Eingabe (IPv4): .conf wird nicht 
angelegt';
                }
                
                
       return $value;
   }
}

Hier hab ich massive Verständnissprobleme und die Doku sagt gar nichts dazu wo 
der code überhaupt hingehört.
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an