Ejemplo n.º 1
0
 /**
  * Constructs the class with given parameters and parses object related
  * data.
  *
  * @param Zend_Io_Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($this->_reader === null) {
         return;
     }
     @(list($this->_number, $this->_total) = explode("/", $this->getText()));
 }
Ejemplo n.º 2
0
 /**
  * Constructs the class with given parameters and parses object related
  * data.
  *
  * @param Zend_Io_Reader $reader The reader object.
  * @param Array $options The options array.
  * @param string $format Rule for formatting output. If null the default
  *  ISO 8601 date format is used.
  */
 public function __construct($reader = null, &$options = array(), $format = null)
 {
     parent::__construct($reader, $options);
     $this->_format = $format;
     if ($this->_reader === null) {
         return;
     }
 }
Ejemplo n.º 3
0
 /**
  * Constructs the class with given parameters and parses object related
  * data.
  *
  * @param Zend_Io_Reader $reader The reader object.
  * @param Array $options The options array.
  */
 public function __construct($reader = null, &$options = array())
 {
     parent::__construct($reader, $options);
     if ($this->_reader === null) {
         return;
     }
     $this->_country = substr($this->getText(), 0, 2);
     $this->_registrant = substr($this->getText(), 2, 3);
     $this->_year = substr($this->getText(), 5, 2);
     $this->_uniqueNumber = substr($this->getText(), 7, 5);
 }