StripLineBreaks::setLineBreaks PHP Method

setLineBreaks() public method

Sets the line-breaking characters.
public setLineBreaks ( string $lineBreaks )
$lineBreaks string A String containing all the characters to be considered as line-breaking.
    function setLineBreaks($lineBreaks)
    {
        $this->_lineBreaks = (string) $lineBreaks;
    }

Usage Example

Example #1
0
 /**
  * Creates a new StripLineBreaks 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 StripLineBreaks($reader);
     $newFilter->setLineBreaks($this->getLineBreaks());
     $newFilter->setInitialized(true);
     $newFilter->setProject($this->getProject());
     return $newFilter;
 }