classes/phing/filters/LineContains.php
\Contains
Holds a contains element.
- package
- phing.filters
Properties
Methods
\LineContains
Filter which includes only those lines that contain all the user-specified strings.
Example:
Or:
This will include only those lines that contain foo and
bar.
- Extends from
- \BaseParamFilterReader
- Implements
- \ChainableReader
- see
- \PhingFilterReader
- author
- Yannick Lecaillez
- author
- Hans Lellelid
- copyright
- © 2003 seasonfive. All rights reserved
- package
- phing.filters
- version
- $Revision: 1084 $
Constants
Properties
Methods

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

getContains(
)
:
arrayReturns the vector of words which must be contained within a line read
from the original stream in order for it to match this filter.
| Type | Description |
|---|---|
| array |

read(
$len
=
null
)
:
mixedReturns all lines in a buffer that contain specified strings.
| Name | Type | Description |
|---|---|---|
| $len |
| Type | Description |
|---|---|
| mixed |

readChar(
)
:
\the[Deprecated. For reference only, used to be read() method.]
Returns the next character in the filtered stream, only including
lines from the original stream which contain all of the specified words.
| Type | Description |
|---|---|
| \the |
- exception
- IOException if the underlying stream throws an IOException during reading

setContains(
array $contains
)
:
Sets the array of words which must be contained within a line read
from the original stream in order for it to match this filter.
| Name | Type | Description |
|---|---|---|
| $contains | array | An array of words which must be contained within a line in order for it to match in this filter. Must not be |