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 setTitle($var)
 {
     $this->title->set($var);
 }
Example #4
0
 public function setDescription($var)
 {
     $this->description->set($var);
 }
Example #5
0
 public function setCategory($var)
 {
     $this->category->set($var);
 }
Example #6
0
 public function setFaxNumber($fax)
 {
     $fax = preg_replace('/[^\\d]/', '', $fax);
     $this->fax_number->set($fax);
 }
Example #7
0
 public function setSiteAddress($var)
 {
     $this->siteAddress->set($var);
 }