public function afterDataSet()
 {
     parent::afterDataSet();
     if (!$this->regex) {
         $this->hostname = substr(str_replace(".*", "*", stripslashes($this->hostname)), 1, -1);
     }
 }
 public function afterDataSet()
 {
     parent::afterDataSet();
     $default = getArrayVar(self::$_defaultOpts, $this->name);
     if ($this->value == null) {
         $this->value = $default;
     }
 }
 public function afterDataSet()
 {
     parent::afterDataSet();
     $this->ip_from = long2ip($this->ip_from);
     $this->ip_to = long2ip($this->ip_to);
 }