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