Class: searchStringParser

Quellcode Position: Program_Root/base_searchstringparser.php

Class searchStringParser

Class Overview
Properties Summary
mixed   $ignore_connector  
mixed   $tokens  

Method Summary
boolean   addElementToken()   Add element token
integer   addToken()   Add token
integer   closeTokenGroup()   close token group
void   createToken()  
void   debugTokens()   Debug token
mixed   get()   Get function
string   getBooleanFilterLine()   Get Filters for MySQL MATCH Command in Boolean Mode (MySQL > 4.1)
string   getBooleanFilters()   Get filters for MySQL MATCH Command in Boolean Mode (MySQL > 4.1)
string   getLikeFilterLine()   Get filter line for SQL LIKE command
string   getLikeFilters()   Get filters for SQL LIKE command
string   getMatchFilterLine()   Get filter line for MySQL MATCH command
string   getMatchFilters()   Get filters for MySQL MATCH command
void   getSQL()  
integer   openTokenGroup()   open token group
integer   parse()   Parse

Properties
mixed   $ignore_connector = true [Zeile 16]

mixed   $tokens = NULL [Zeile 15]

Methods
addElementToken  [Zeile 25]

  boolean addElementToken( $token $token  )

Add element token

Parameters:
$token   $token: 

API Tags:
Access:  public


addToken  [Zeile 44]

  integer addToken( $token $token  )

Add token

Parameters:
$token   $token: 

API Tags:
Access:  public


closeTokenGroup  [Zeile 109]

  integer closeTokenGroup( intger $level  )

close token group

Parameters:
intger   $level: 

API Tags:
Access:  public


createToken  [Zeile 86]

  void createToken( )



debugTokens  [Zeile 524]

  void debugTokens( )

Debug token


API Tags:
Access:  public


get  [Zeile 483]

  mixed get( string $searchfor, array $fields, [string $mode = 'LIKE']  )

Get function

Parameters:
string   $searchfor: 
array   $fields: 
string   $mode:  optional, default value 'LIKE'

API Tags:
Return:  string or false
Access:  public


getBooleanFilterLine  [Zeile 401]

  string getBooleanFilterLine( string $fieldstr  )

Get Filters for MySQL MATCH Command in Boolean Mode (MySQL > 4.1)

Parameters:
string   $fieldstr: 

API Tags:
Access:  public


getBooleanFilters  [Zeile 448]

  string getBooleanFilters( array $fields  )

Get filters for MySQL MATCH Command in Boolean Mode (MySQL > 4.1)

Parameters:
array   $fields: 

API Tags:
Access:  public


getLikeFilterLine  [Zeile 250]

  string getLikeFilterLine( mixed &$fields, string $fieldstr  )

Get filter line for SQL LIKE command

Parameters:
string   $fieldstr: 

API Tags:
Access:  public


getLikeFilters  [Zeile 303]

  string getLikeFilters( mixed $fields  )

Get filters for SQL LIKE command

Parameters:
mixed   $fields: 

API Tags:
Access:  public


getMatchFilterLine  [Zeile 326]

  string getMatchFilterLine( string $fieldstr  )

Get filter line for MySQL MATCH command

Parameters:
string   $fieldstr: 

API Tags:
Access:  public


getMatchFilters  [Zeile 368]

  string getMatchFilters( mixed $fields  )

Get filters for MySQL MATCH command

Parameters:
mixed   $fields: 

API Tags:
Access:  public


getSQL  [Zeile 501]

  void getSQL( mixed $searchfor, mixed $fields, [mixed $mode = 0]  )



openTokenGroup  [Zeile 97]

  integer openTokenGroup( integer $level  )

open token group

Parameters:
integer   $level: 

API Tags:
Access:  public


parse  [Zeile 135]

  integer parse( string $searchfor  )

Parse

Parameters:
string   $searchfor: 

API Tags:
Access:  public