/**
  * Checks each line of the given value with the given validators
  * @param string $value
  * @return bool 
  */
 function Check($value)
 {
     $success = true;
     $strings = System\String::SplitLines($value);
     foreach ($strings as $string) {
         $success = parent::Check($string);
         if (!$success) {
             break;
         }
     }
     //The value is temporarily set to the substrings
     //when calling the parent check function above,
     //so we have to store it here, not before the loop:
     $this->SetValue($value);
     return $success;
 }
Example #2
0
 function __construct(Textarea $field)
 {
     $this->field = $field;
     $this->attribs = $field->GetHtmlAttributes();
 }