コード例 #1
0
ファイル: System08.php プロジェクト: jschaedl/bav
 protected function getResult()
 {
     if ((int) $this->account < 60000) {
         return false;
     }
     return parent::getResult();
 }
コード例 #2
0
ファイル: System13.php プロジェクト: jschaedl/bav
 /**
  * @param string $account
  * @return bool
  */
 public function isValid($account)
 {
     if (parent::isValid($account)) {
         return true;
     }
     $account = ltrim($account, '0') . '00';
     return strlen($account) <= $this->normalizedSize && parent::isValid($account);
 }
コード例 #3
0
ファイル: System65.php プロジェクト: jschaedl/bav
 protected function init($account)
 {
     parent::init($account);
     if ($this->account[8] == 9) {
         $this->setEnd(-1);
     } else {
         $this->setEnd(6);
     }
 }
コード例 #4
0
ファイル: System41.php プロジェクト: jschaedl/bav
 protected function init($account)
 {
     parent::init($account);
     if ($this->account[3] == 9) {
         $this->end = 3;
     } else {
         $this->end = 0;
     }
 }
コード例 #5
0
ファイル: System74.php プロジェクト: jschaedl/bav
 protected function getResult()
 {
     if (parent::getResult()) {
         return true;
     } elseif (strlen(ltrim($this->account, '0')) == 6) {
         $nextDecade = (int) ($this->accumulator / 10) + 1;
         $nextHalfDecade = $nextDecade * 10 - 5;
         $check = $nextHalfDecade - $this->accumulator;
         return (string) $check === $this->getChecknumber();
     } else {
         return false;
     }
 }
コード例 #6
0
ファイル: System75.php プロジェクト: jschaedl/bav
 public function isValid($account)
 {
     $account = ltrim($account, '0');
     $length = strlen($account);
     if ($length < 6 || $length > 9) {
         return false;
     }
     if ($length == 9) {
         if ($account[0] == 9) {
             $account = substr($account, 1, 6);
         } else {
             $account = substr($account, 0, 6);
         }
     }
     return parent::isValid($account);
 }
コード例 #7
0
ファイル: SystemA1.php プロジェクト: jschaedl/bav
 protected function getResult()
 {
     $length = strlen(ltrim($this->account, '0'));
     return ($length == 8 || $length == 10) && parent::getResult();
 }
コード例 #8
0
ファイル: System45.php プロジェクト: jschaedl/bav
 protected function getResult()
 {
     return $this->account[0] === '0' || $this->account[4] === '1' || parent::getResult();
 }
コード例 #9
0
ファイル: System59.php プロジェクト: jschaedl/bav
 public function isValid($account)
 {
     return ltrim($account, "0") != "" && strlen($account) < 9 || parent::isValid($account);
 }
コード例 #10
0
ファイル: SystemE0.php プロジェクト: jschaedl/bav
 protected function getResult()
 {
     $this->accumulator += 7;
     return parent::getResult();
 }
コード例 #11
0
ファイル: System78.php プロジェクト: jschaedl/bav
 public function isValid($account)
 {
     return strlen($account) !== 8 && parent::isValid($account);
 }