LLMS_Database_Query::__get( string $key )
Preserve backwards compat for read access to formerly public and removed class properties.
Parameters Parameters
- $key
-
(string) (Required) Property key name.
Return Return
(mixed)
Source Source
File: includes/abstracts/abstract.llms.database.query.php
public function __get( $key ) {
// Handle formerly public properties.
$legacy_props = $this->legacy_public_props();
if ( array_key_exists( $key, $legacy_props ) ) {
$this->public_prop_deprecation( $key );
$val = $legacy_props[ $key ][0];
return method_exists( $this, $val ) ? $this->$val() : $this->$val;
} elseif ( 'sql' === $key ) {
$class = get_called_class();
_deprecated_function( "Property {$class}::sql", '6.0.0', "{$class}::get_query()" );
return $this->query;
}
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 6.0.0 | Introduced. |