public function setTPIN($n) { if (!ZP::isInt($n) || intval($n) < 1) { $this->setError("TPIN"); } else { $this->TPIN = intval($n); } }
public function setTypeID($n) { if (!ZP::isInt($n) || intval($n) < 0) { $this->setError("typeID"); } else { if (substr_compare($n, '0000', 0, 4) == 0 || intval($n) == 0) { $this->typeID = null; } else { $this->typeID = intval($n); } } }