Requests_IRI::__set() WordPress Method

The set method is used to set the value of an IRI. The IRI must be a valid IRI, and the value must be a string.

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

Overload __set() to provide access via properties


Parameters

$name

(string)(Required)Property name

$value

(mixed)(Required)Property value


Top ↑

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

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.