Private Method Details |
searchPattern |
private string searchPattern( string $pattern, [ integer $type ] )
|
|
Prepares and returns the search keyword. Prepares and returns the search keyword to be used in SQL or REGEXP search patterns.
|
Parameter |
|
string |
$pattern |
|
|
Search keyword. |
|
|
integer |
$type |
= >>0<< |
|
Type of search pattern. |
|
Returns |
string Prepared search keyword. |
|
re_k2c |
private void re_k2c( string &$keyword, integer $number, array $extension )
|
|
Prepares search keywords. Prepares search keywords to be used in REGEXP search patterns.
|
Parameter |
|
string |
&$keyword |
|
|
Search keyword. |
|
|
integer |
$number |
|
|
Keywords array key. |
|
|
array |
$extension |
|
|
Additional condition prefix and suffix. |
|
Returns |
void |
|
sql_k2c |
private void sql_k2c( string &$keyword, integer $number, array $extension )
|
|
Prepares search keywords. Prepares search keywords to be used in SQL search patterns.
|
Parameter |
|
string |
&$keyword |
|
|
Search keyword. |
|
|
integer |
$number |
|
|
Keywords array key. |
|
|
array |
$extension |
|
|
Additional condition prefix and suffix. |
|
Returns |
void |
Required global variables |
|
boolean $sqlExtendedSearch |
Defines search mode. |
|
|
keywords2conditions |
private array keywords2conditions( array $keywords, [ integer $type, array $extension ] )
|
|
Returns prepared search keywords array. Returns search keywords array prepared for use in SQL query.
|
Parameter |
|
array |
$keywords |
|
|
Searh keywords. |
|
|
integer |
$type |
= >>0<< |
|
Type of search pattern. |
|
|
array |
$extension |
= >>array()<< |
|
Additional condition prefix and suffix. |
|
Returns |
array Search keywords array. |
|
expression2internal |
private array expression2internal( string $expression )
|
|
Returns prepared search array. Returns prepared search array for the expression2conditions() function.
|
Parameter |
|
string |
$expression |
|
|
Search string. |
|
Returns |
array Prepared search array. |
See Also |
expression2conditions() |
|
composeSearchConditions |
private string composeSearchConditions( array $keywords, integer $type, [ string $operation, boolean $negation ] )
|
|
Returns part of the WHERE condition. Returns part of the WHERE condition.
|
Parameter |
|
array |
$keywords |
|
|
Search keywords. |
|
|
integer |
$type |
|
|
Type of search pattern. |
|
|
string |
$operation |
= >>"or"<< |
|
Logical operation OR or AND. |
|
|
boolean |
$negation |
= >>false<< |
|
If TRUE set WHERE prefix to NOT. |
|
Returns |
string Part of the WHERE condition. |
|