[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/filters/ -> LineContains.php (sommaire)

(pas de description)

Poids: 258 lignes (8 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

LineContains:: (7 méthodes):
  read()
  readChar()
  createContains()
  setContains()
  getContains()
  chain()
  _initialize()

Contains:: (2 méthodes):
  setValue()
  getValue()


Classe: LineContains  - X-Ref

Filter which includes only those lines that contain all the user-specified
strings.

Example:

<pre><linecontains>
<contains value="foo">
<contains value="bar">
</linecontains></pre>

Or:

<pre><filterreader classname="phing.filters.LineContains">
<param type="contains" value="foo"/>
<param type="contains" value="bar"/>
</filterreader></pre>

This will include only those lines that contain <code>foo</code> and
<code>bar</code>.

read($len = null)   X-Ref
Returns all lines in a buffer that contain specified strings.

return: mixed buffer, -1 on EOF

readChar()   X-Ref
[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.

return: the next character in the resulting stream, or -1

createContains()   X-Ref
Adds a <code><contains></code> nested element.

return: Contains The <code>contains</code> element added.

setContains($contains)   X-Ref
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.

param: array $contains An array of words which must be contained

getContains()   X-Ref
Returns the vector of words which must be contained within a line read
from the original stream in order for it to match this filter.

return: array The array of words which must be contained within a line read

chain(Reader $reader)   X-Ref
Creates a new LineContains using the passed in
Reader for instantiation.

param: object A Reader object providing the underlying stream.
return: object A new filter based on this configuration, but filtering

_initialize()   X-Ref
Parses the parameters to add user-defined contains strings.


Classe: Contains  - X-Ref

Holds a contains element.

setValue($contains)   X-Ref
Set 'contains' value.

param: string $contains

getValue()   X-Ref
Returns 'contains' value.

return: string



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7