SQL Help class. More...
Public Member Functions | |
limit_parse ($str) | |
Parse the limit string and split into more sql standard LIMIT (val) OFFSET (val). | |
Static Public Member Functions | |
static | concat ($arg1, $arg2, $arg3) |
Concatenate arguments for use in sql query Since we are using 3 arguments, this method handles just this and nothing else. | |
static | combine () |
Given one SQL function F and N elements E, return (E_0) F (E_1) F (E_2) F . |
SQL Help class.
static sql_Core::combine | ( | ) | [static] |
Given one SQL function F and N elements E, return (E_0) F (E_1) F (E_2) F .
.. (E_N) Handles empty arguments just fine. Is helpful for ANDing or ORing long expressions without having to resort to hacks like WHERE 1=1
static sql_Core::concat | ( | $ | arg1, | |
$ | arg2, | |||
$ | arg3 | |||
) | [static] |
Concatenate arguments for use in sql query Since we are using 3 arguments, this method handles just this and nothing else.
Arguments 1 and 3 are assumed to be field names and argument 2 i assumed to be a string.