WpOrg\Requests

Iri::__set()publicWP 1.0

Overload __set() to provide access via properties

Method of the class: Iri{}

No Hooks.

Return

null. Nothing (null).

Usage

$Iri = new Iri();
$Iri->__set( $name, $value );
$name(string) (required)
Property name
$value(mixed) (required)
Property value

Iri::__set() code WP 6.6.2

public function __set($name, $value) {
	if (method_exists($this, 'set_' . $name)) {
		call_user_func(array($this, 'set_' . $name), $value);
	}
	elseif (
		   $name === 'iauthority'
		|| $name === 'iuserinfo'
		|| $name === 'ihost'
		|| $name === 'ipath'
		|| $name === 'iquery'
		|| $name === 'ifragment'
	) {
		call_user_func(array($this, 'set_' . substr($name, 1)), $value);
	}
}