25 #require_once 'Zend/Validate/Abstract.php'; 30 #require_once 'Zend/Loader.php'; 46 self::FAILED =>
"'%value%' failed checksum validation",
47 self::INVALID_CHARS =>
"'%value%' contains invalid characters",
48 self::INVALID_LENGTH =>
"'%value%' should have a length of %length% characters",
49 self::INVALID =>
"Invalid type given. String expected",
91 if (array_key_exists(
'options',
$adapter)) {
95 if (array_key_exists(
'checksum',
$adapter)) {
99 if (array_key_exists(
'adapter',
$adapter)) {
102 #require_once 'Zend/Validate/Exception.php'; 108 if ($checksum !==
null) {
134 #require_once 'Zend/Loader.php'; 145 #require_once 'Zend/Validate/Exception.php'; 147 "Adapter " .
$adapter .
" does not implement Zend_Validate_Barcode_AdapterInterface" 187 $this->
_error(self::INVALID);
193 $this->_length =
$adapter->getLength();
196 if (is_array($this->_length)) {
199 foreach($temp as $length) {
200 $this->_length .=
"/";
201 $this->_length .= $length;
204 $this->_length = substr($this->_length, 1);
207 $this->
_error(self::INVALID_LENGTH);
213 $this->
_error(self::INVALID_CHARS);
220 $this->
_error(self::FAILED);
setAdapter($adapter, $options=null)
static loadClass($class, $dirs=null)
_error($messageKey, $value=null)
static isReadable($filename)