public function setName($n) { if (!($n = ZP::parseString($n))) { $this->setError('name'); } else { $this->name = $n; } }
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'); } } }
public function setAddress($n) { $n = ZP::parseString($n); if (strlen($n) == 0) { $this->address = ""; } else { if ($n) { $this->address = $n; } else { $this->setError('address'); } } }
public function setPosition($n) { if (is_null($n)) { $this->position = null; } else { if (!($n = ZP::parseString($n))) { $this->setError('position'); } else { $this->position = $n; } } }