Model/Select/Expr/SearchLike.php

Classes 
package
Model
subpackage
Expr
Classes
Kwf_Model_Select_Expr_SearchLike

Description

Adds the needed wheres for a search

\Kwf_Model_Select_Expr_SearchLike

Implements
\Kwf_Model_Select_Expr_Interface
package
Model
subpackage
Expr
Methods
__construct
fromArray
getQueryExpr
getResultType
getSearchFields
getSearchValues
toArray
validate

Description

Adds the needed wheres for a search

Methods

__construct

__construct( string|array $searchValues, string|array $searchFields = * ) :

Arguments
$searchValues
stringarray
An array with the db-field in the key and the search value as value. Field query means to search in all given fields for this value (see the second argument). If a string is given, it is interpreted like array('query' => $searchValues).
$searchFields
stringarray
The fields that should be searched with search field 'query'. If a string is given, it is treated like array($string). Value '*' means to search in all fields in the table.
Details
visibility
public
final
false
static
false

fromArray

fromArray(  $data ) :
Arguments
$data
Details
visibility
public
final
false
static
true

getQueryExpr

getQueryExpr(  $model ) :

Arguments
$model
Details
visibility
public
final
false
static
false
internal
helper function

getResultType

getResultType( ) :
Details
visibility
public
final
false
static
false

getSearchFields

getSearchFields( ) :
Details
visibility
public
final
false
static
false

getSearchValues

getSearchValues( ) :
Details
visibility
public
final
false
static
false

toArray

toArray( ) :
Details
visibility
public
final
false
static
false

validate

validate( ) :
Details
visibility
public
final
false
static
false
Documentation was generated by DocBlox 0.12.3.