(Default is first 10 lines.)

Example:

Or:

   
See also: FilterReader
Author: hans lellelid, hans@velum.net
Inheritance: extends BaseParamFilterReader, implements ChainableReader
Beispiel #1
0
 /**
  * Creates a new HeadFilter using the passed in
  * Reader for instantiation.
  * 
  * @param object A Reader object providing the underlying stream.
  *            Must not be <code>null</code>.
  * 
  * @return object A new filter based on this configuration, but filtering
  *         the specified reader.
  */
 function chain(Reader $reader)
 {
     $newFilter = new HeadFilter($reader);
     $newFilter->setLines($this->getLines());
     $newFilter->setInitialized(true);
     $newFilter->setProject($this->getProject());
     return $newFilter;
 }
Beispiel #2
0
 function addHeadFilter(HeadFilter $o)
 {
     $o->setProject($this->project);
     $this->filterReaders[] = $o;
 }