示例#1
0
 public function setTPIN($n)
 {
     if (!ZP::isInt($n) || intval($n) < 1) {
         $this->setError("TPIN");
     } else {
         $this->TPIN = intval($n);
     }
 }
示例#2
0
 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);
         }
     }
 }