classes/phing/filters/TailFilter.php
Reads the last <code>n</code> lines of a stream. (Default is last10 lines.)
Example:
Or:
- author
- Yannick Lecaillez
- author
- hans lellelid, hans@velum.net
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- see
- \BaseParamFilterReader
- version
- $Revision: 526 $
\TailFilter
Reads the last <code>n</code> lines of a stream. (Default is last10 lines.)
Example:
Or:
- Extends from
- \BaseParamFilterReader
- Implements
- \ChainableReader
- see
- \BaseParamFilterReader
- author
- Yannick Lecaillez
- author
- hans lellelid, hans@velum.net
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- version
- $Revision: 526 $
Constants
Properties
Methods

_initialize(
)
:
Scans the parameters list for the "lines" parameter and uses
it to set the number of lines to be returned in the filtered stream.

chain(
object $reader
)
:
objectCreates a new TailFilter using the passed in
Reader for instantiation.
| Name | Type | Description |
|---|---|---|
| $reader | object | A Reader object providing the underlying stream. Must not be |
| Type | Description |
|---|---|
| object |

getLines(
)
:
integerReturns the number of lines to be returned in the filtered stream.
| Type | Description |
|---|---|
| integer |

read(
int $len
=
null
)
:
mixedReturns the last n lines of a file.
| Name | Type | Description |
|---|---|---|
| $len | int | Num chars to read. |
| Type | Description |
|---|---|
| mixed |