Beispiel #1
0
 function __construct($value = ',')
 {
     try {
         parent::__construct($value);
     } catch (\domainException $exception) {
         throw new csv\exception\domain('Separator should be a string');
     }
 }
Beispiel #2
0
 function __construct($value = "\r\n")
 {
     try {
         parent::__construct($value);
     } catch (\domainException $exception) {
         throw new csv\exception\domain('End-of-line should be a string');
     }
 }
Beispiel #3
0
 function __construct($value = '')
 {
     $domainException = null;
     try {
         parent::__construct($value);
     } catch (\domainException $domainException) {
         throw new exception\domain('Data should be a string');
     }
 }
Beispiel #4
0
 static function validate($value)
 {
     return parent::validate($value) && self::isNotEmpty($value);
 }
Beispiel #5
0
 static function validate($name)
 {
     return parent::validate($name) && self::containsAllowedCharacters($name);
 }
Beispiel #6
0
 static function validate($value)
 {
     return parent::validate($value) && self::isHost($value);
 }
Beispiel #7
0
 static function validate($value)
 {
     return parent::validate($value) && self::isPhpLabel($value);
 }