GF_Query_Call
The Gravity Forms Query Call class.
Source: includes/query/class-gf-query-call.php:6
Details
- Kind:
class - Namespace:
(global)
Methods
| Method | Description |
|---|---|
__construct() | A function call. |
sql() | Generate the SQL. |
CAST() | A cast call. |
RAND() | A RAND call. |
__get() | Proxy read-only values. |
Method Reference
__construct()
public function __construct( $function_name, $parameters=[] )
A function call.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$function_name | string | The function to call. | |
$parameters | array | [] | The function parameters. Default: [] |
Source: includes/query/class-gf-query-call.php:23
sql()
public function sql( $query )
Generate the SQL.
The default behavior is to just plop function_name( implode( ', ', $parameters ) ). For other cases, like CAST, check the derived classes.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$query | GF_Query | The query. |
Returns
string— The generated SQL.
Source: includes/query/class-gf-query-call.php:38
CAST()
public static function CAST( $column, $type )
A cast call.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$column | GF_Query_Column | The column to cast. | |
$type | string | The type to cast to. |
Returns
- GF_Query_Call |
null— instance or null.
Source: includes/query/class-gf-query-call.php:53
RAND()
public static function RAND()
A RAND call.
Returns
- GF_Query_Call |
null— instance or null.
Source: includes/query/class-gf-query-call.php:66
__get()
public function __get( $key )
Proxy read-only values.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$key |
Source: includes/query/class-gf-query-call.php:127