public function setWith($value, $charlist = null, $checkType = true)
{
parent::setWith($value);
$this->charlist = $charlist;
if ($checkType === true) {
if ($this->analyzer->isString($this->value) === true) {
$this->pass();
} else {
$this->fail($this->_('%s is not a string', $this));
}
}
return $this;
}
public function setWith($value, $charlist = null, $checkType = true) { parent::setWith($value, $charlist, $checkType); if ($checkType === true) { if ($this->analyzer->isUtf8($this->value) === true) { $this->pass(); } else { $this->fail($this->_('%s is not an UTF-8 string', $this)); } } return $this; }