Filter/StringPrependIf.php

Show: inherited
Table of Contents

\Conjoon_Filter_StringPrependIf

Package: Conjoon\Filter

Parent(s)
?\Zend_Filter_Interface
Author
Thorsten Suckow-Homberg  
Category
Filter  

Properties

Propertyprivate  $_prependWith= '""'
Default value""Details
Type
n/a
Propertyprivate  $_startsWith= 'array()'
Default valuearray()Details
Type
n/a

Methods

methodpublic__construct( array $startsWith = array(), string $prependWith = "" ) : void

Constructor.

Parameters
Name Type Description
$startsWith array

An array with strings to check if they occur at the start of the string to filter.

$prependWith string

The string to prepend the filtered string with if none of the strings in $startsWith where found

methodpublicfilter( mixed $value ) : string

Defined by Zend_Filter_Interface

Prepends the string with the given value if and only if it does not start with any strings found in $startsWith.

Parameters
Name Type Description
$value mixed
Returns
Type Description
string
Documentation was generated by DocBlox 0.18.1.