LLMS_Database_Query::setup_args()
Setup arguments prior to a query.
Contents
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
$legacy_props = $this->legacy_public_props();
if ( array_key_exists( $key, $legacy_props ) ) {
$this->public_prop_deprecation( $key );
$this->$key = $val;
} elseif ( 'sql' === $key ) {
$class = get_called_class();
_deprecated_function( esc_html( "Property {$class}::sql" ), '6.0.0', esc_html( "{$class}::query" ) );
$this->query = $val;
}
}
/**
* Handle backwards compatibility for the misspelled (and removed) method `preprare_query()`.
*
* @since 6.0.0
*
* @param string $name Method name.
* @param array $args Arguments passed to the method.
* @return void|string
*/
public function __call( $name, $args ) {
if ( 'preprare_query' === $name ) {
$class = get_called_class();
_deprecated_function( esc_html( "{$class}::preprare_query()" ), '6.0.0', esc_html( "{$class}::prepare_query()" ) );
return $this->prepare_query();
}
}
/**
* Prepare the query.
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 4.5.1 | Added filter "llms_{$this->id}_query_parse_args". |
| 3.8.0 | |
| 3.34.0 | Introduced. |