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