Skip to content

USPSTools Parse AIS CS215N

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

USPSTools\Parse\AIS\CS215N

This class is for parsing USPS AIS product CS215N, known as "City State National".

  • Class name: CS215N
  • Namespace: USPSTools\Parse\AIS
  • Parent class: USPSTools\Parse

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\AIS\CS215N::parseLine()

array USPSTools\Parse\AIS\CS215N::\USPSTools\Parse\AIS\CS215N::parseLine()(string $line, string $seekingRecordType)

Parse a line from the input file.

  • Visibility: public
  • This method is static.

Arguments

  • $line string - A line of data from the input file.
  • $seekingRecordType string - [Optional] A record type to specifically seek and return. If <pre><code> set and current record does not match this, we will not spend the cycles to parse the rest of the record.</code></pre>

\USPSTools\Parse::parseFile()

mixed USPSTools\Parse\AIS\CS215N::\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 <pre><code> set and current record does not match this, we will not spend the cycles to parse the rest of the record.</code></pre>
  • $startLine mixed
  • $numberOfLines mixed