classes/phing/filters/PrefixLines.php
\PrefixLines
Attaches a prefix to every line.
Example:
Or:
- Extends from
- \BaseParamFilterReader
- Implements
- \ChainableReader
- see
- \FilterReader
- access
- public
- author
- Yannick Lecaillez
- author
- hans lellelid, hans@velum.net
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- version
- $Revision: 526 $ $Date: 2009-08-11 14:11:17 +0200 (Tue, 11 Aug 2009) $
Constants
Properties
Methods

chain(
object $reader
)
:
objectCreates a new PrefixLines filter 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 |

getPrefix(
)
:
stringReturns the prefix which will be added at the start of each input line.
| Type | Description |
|---|---|
| string |

read(
$len
=
null
)
:
mixedAdds a prefix to each line of input stream and returns resulting stream.
| Name | Type | Description |
|---|---|---|
| $len |
| Type | Description |
|---|---|
| mixed |