Constructor & Destructor Documentation
Constructs the object
- Parameters:
-
string | $query | The query string |
array | $config | The news configuration for translating the query |
string | $translation_key | The key for the translation public |
- Returns:
- void
Member Function Documentation
Extracts the dates conditions from the query Returns an associative array with the query and the date condition separated
- Parameters:
-
string | $query | The query string public |
- Returns:
- array
Gets the delimiter from the news config file protected
- Returns:
- string
Gets the functions from the news config file protected
- Returns:
- string[]
Gets the operators from the news config file protected
- Returns:
- string[]
Gets the parantheses from the news config file protected
- Returns:
- string[]
Gets the translated values for the delimiter
- Parameters:
-
string | $original | The original delimiter protected |
- Returns:
- string
Gets the translated values for the functions
- Parameters:
-
string[] | $originals The original functions values protected |
- Returns:
- string[]
Gets the translated values for the operators
- Parameters:
-
string[] | $originals The original operators values protected |
- Returns:
- string[]
Gets the translated values for the parantheses
- Parameters:
-
string[] | $originals The original parantheses protected |
- Returns:
- string[]
Extracts the dates conditions from the query Removes any dates conditions set through the query string
- Parameters:
-
string | $query | The query string public |
- Returns:
- string
Converts a date from any string format to a UNIX timestamp
- Parameters:
-
string | $date | The date public |
- Returns:
- int
Splits the string in tokens
- Parameters:
-
string | $query | The query string protected |
- Returns:
- queryToken[]
Translates a query from Unified Query Language to Specific Engine Language
- Parameters:
-
queryToken[] | $tokens The tokens to be translated [OPTIONAL] public |
- Returns:
- string
Field Documentation
The documentation for this class was generated from the following file: