/** * Returns the bankaccount of the IBAN * * @access public * @return string */ function getBankaccount() { if (!$this->validate()) { $this->_errorcode = VALIDATE_FINANCE_IBAN_GENERAL_INVALID; return PEAR::raiseError($this->errorMessage($this->_errorcode), $this->_errorcode, PEAR_ERROR_TRIGGER, E_USER_WARNING, $this->errorMessage($this->_errorcode) . " in VALIDATE_FINANCE_IBAN::getBankaccount()"); } else { $_iban_countrycode_bankaccount = Validate_Finance_IBAN::_getCountrycodeBankaccount(); $currCountrycodeBankaccount = $_iban_countrycode_bankaccount[substr($iban, 0, 2)]; return substr($this->_iban, $currCountrycodeBankaccount['start'], $currCountrycodeBankaccount['length']); } }