Skip to content
Ben Dauphinee edited this page Aug 8, 2014 · 1 revision

USPSTools\Parse

This class the base class for parsing USPS files.

  • Class name: Parse
  • Namespace: USPSTools

Properties

$lineLength

protected mixed $lineLength

A variable to store the length of a line for each file type.

  • Visibility: protected
  • This property is static.

Methods

\USPSTools\Parse::parseFile()

mixed USPSTools\Parse::\USPSTools\Parse::parseFile()($filename, string $seekingRecordType, $startLine, $numberOfLines)

Processes an entire file worth of records.

  • Visibility: public
  • This method is static.

Arguments

  • $filename mixed
  • $seekingRecordType string - [Optional] A record type to specifically seek and return. If set and current record does not match this, we will not spend the cycles to parse the rest of the record.
  • $startLine mixed
  • $numberOfLines mixed