Geeklog
[ class tree: Geeklog ] [ index: Geeklog ] [ all elements ]

Class: Swift_StreamFilters_StringReplacementFilter

Source Location: /system/vendor/swiftmailer/swiftmailer/lib/classes/Swift/StreamFilters/StringReplacementFilter.php

Class Overview


Processes bytes as they pass through a buffer and replaces sequences in it.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 16]
Processes bytes as they pass through a buffer and replaces sequences in it.



Tags:

author:  Chris Corbyn


[ Top ]


Class Methods


constructor __construct [line 30]

Swift_StreamFilters_StringReplacementFilter __construct( string|array $search, string|array $replace)

Create a new StringReplacementFilter with $search and $replace.



Tags:

access:  public


Parameters:

string|array   $search  
string|array   $replace  

[ Top ]

method filter [line 62]

string filter( string $buffer)

Perform the actual replacements on $buffer and return the result.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::filter()
Filters $buffer and returns the changes.

Parameters:

string   $buffer  

[ Top ]

method shouldBuffer [line 43]

bool shouldBuffer( string $buffer)

Returns true if based on the buffer passed more bytes should be buffered.



Tags:

access:  public



Implementation of:
Swift_StreamFilter::shouldBuffer()
Based on the buffer given, this returns true if more buffering is needed.

Parameters:

string   $buffer  

[ Top ]


Documentation generated on Sun, 02 Oct 2016 07:55:56 +0000 by phpDocumentor 1.4.3