PHP Class Pop\Filter\Search

Author: Nick Sagona, III ([email protected])
Afficher le fichier Open project: nicksagona/PopPHP Class Usage Examples

Protected Properties

Свойство Type Description
$case boolean Case search property
$data array Data to search
$delim string Delimiter
$pattern string Search pattern property
$search string Search property

Méthodes publiques

Méthode Description
__construct ( mixed $data, string $delim = " " ) : Search Constructor
factory ( mixed $data, string $delim = " " ) : Search Static method to instantiate the search filter object and return itself to facilitate chaining methods together.
search ( string $search, boolean $case = false ) : array Method to perform a search over the data and return an array of the results.

Méthodes protégées

Méthode Description
searchArray ( string $val ) : string Method to search an array for a string, non-inclusive.

Method Details

__construct() public méthode

Instantiate the search object.
public __construct ( mixed $data, string $delim = " " ) : Search
$data mixed
$delim string
Résultat Search

factory() public static méthode

Static method to instantiate the search filter object and return itself to facilitate chaining methods together.
public static factory ( mixed $data, string $delim = " " ) : Search
$data mixed
$delim string
Résultat Search

searchArray() protected méthode

Method to search an array for a string, non-inclusive.
protected searchArray ( string $val ) : string
$val string
Résultat string

Property Details

$case protected_oe property

Case search property
protected bool $case
Résultat boolean

$data protected_oe property

Data to search
protected array $data
Résultat array

$delim protected_oe property

Delimiter
protected string $delim
Résultat string

$pattern protected_oe property

Search pattern property
protected string $pattern
Résultat string