LLMS_Database_Query::__set( string $key, mixed $val )

Preserve backwards compat for write access to formerly public and removed class properties.


Parameters Parameters

$key

(string) (Required) Property name.

$val

(mixed) (Required) Property value.


Top ↑

Return Return

(void)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.database.query.php

	public function __set( $key, $val ) {

		$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( "Property {$class}::sql", '6.0.0', "{$class}::query" );
			$this->query = $val;
		}

	}


Top ↑

Changelog Changelog

Changelog
Version Description
6.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.