Horde_Stream_Filter_Eol
extends php_user_filter
in package
Stream filter class to convert EOL characters.
Usage: stream_filter_register('horde_eol', 'Horde_Stream_Filter_Eol'); stream_filter_[app|pre]pend($stream, 'horde_eol', [ STREAM_FILTER_[READ|WRITE|ALL] ], [ $params ]);
$params is an array that can contain the following:
- eol: (string) The EOL string to use. DEFAULT: <CR><LF> ("\r\n")
Tags
Table of Contents
- $_replace : mixed
- Replacement data
- $_search : mixed
- Search array.
- $_split : string
- First character of a multi-character EOL.
- filter() : mixed
- onCreate() : mixed
Properties
$_replace
Replacement data
protected
mixed
$_replace
$_search
Search array.
protected
mixed
$_search
$_split
First character of a multi-character EOL.
protected
string
$_split
= \null
Methods
filter()
public
filter(mixed $in, mixed $out, mixed &$consumed, mixed $closing) : mixed
Parameters
- $in : mixed
- $out : mixed
- $consumed : mixed
- $closing : mixed
Tags
Return values
mixed —onCreate()
public
onCreate() : mixed