示例#1
0
 public function setName($n)
 {
     if (!($n = ZP::parseString($n))) {
         $this->setError('name');
     } else {
         $this->name = $n;
     }
 }
示例#2
0
 public function setName($n)
 {
     $n = ZP::parseString($n);
     if (!$n || strlen($n) < 3) {
         $this->setError("name");
     } else {
         $this->name = $n;
     }
 }
 public function setSecondaryBusiness($n)
 {
     $n = ZP::parseString($n);
     if (strlen($n) == 0) {
         $this->secondary = "";
     } else {
         if ($n) {
             $this->secondary = $n;
         } else {
             $this->setError('secondary');
         }
     }
 }
示例#4
0
 public function setAddress($n)
 {
     $n = ZP::parseString($n);
     if (strlen($n) == 0) {
         $this->address = "";
     } else {
         if ($n) {
             $this->address = $n;
         } else {
             $this->setError('address');
         }
     }
 }
示例#5
0
 public function setPosition($n)
 {
     if (is_null($n)) {
         $this->position = null;
     } else {
         if (!($n = ZP::parseString($n))) {
             $this->setError('position');
         } else {
             $this->position = $n;
         }
     }
 }