Documentation

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
author

Michael Slusarz slusarz@horde.org

category

Horde

copyright

2009-2017 Horde LLC

license

http://www.horde.org/licenses/lgpl21 LGPL 2.1

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 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
see
stream_filter_register()
Return values
mixed

onCreate()

public onCreate() : mixed
Tags
see
stream_filter_register()
Return values
mixed

Search results