예제 #1
0
 /**
  * Constructor.
  *
  * @throws SMWStringLengthException if the string is longer than
  * SMWDIString::MAXLENGTH. The bytes are counted, not the (possibly
  * multibyte) glyphs of UTF-8, since we care about byte length in (any)
  * storage backend.
  */
 public function __construct($string)
 {
     if (strlen($string) > SMWDIString::MAXLENGTH) {
         throw new SMWStringLengthException($string, SMWDIString::MAXLENGTH);
     }
     parent::__construct($string);
 }