Requests_IRI::__set

Advertisement

Summery Summery

Overload __set() to provide access via properties

Syntax Syntax

Requests_IRI::__set( string $name, mixed $value )

Parameters Parameters

$name

(string) (Required) Property name

$value

(mixed) (Required) Property value

Source Source

File: wp-includes/Requests/IRI.php

	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);
		}
	}

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.