public function set($value) { if (preg_match('/<\\/?[^>]+>/i', $value)) { throw new \Exception('Tags are not permitted in TextOnly'); } parent::set($value); }
public function set($value) { if (!preg_match('@/$@', $value)) { $value .= '/'; } parent::set($value); }
public function getTitle() { return $this->title->get(); }
public function getDescription() { return $this->description->get(); }
public function getCategory() { return $this->category->get(); }
public function __construct($value = null, $varname = null) { $this->setRegexpMatch('/^[^|;,!@#$()<>\\"\'`~{}\\[\\]=+&\\^\\s\\t]+([\\w\\s\\-]+(\\.[\\w]+))$/i'); parent::__construct($value, $varname); $this->setLimit(255); }
public function setFaxNumber($fax) { $fax = preg_replace('/[^\\d]/', '', $fax); $this->fax_number->set($fax); }
public function getSiteAddress() { return $this->siteAddress->get(); }
public function __construct($value = null, $varname = null) { parent::__construct($value, $varname); $this->setLimit(255); }