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
Contents
Parameters
- $name
(string)(Required)Property name
- $value
(mixed)(Required)Property value
Source
File: wp-includes/Requests/IRI.php
157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 | 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 ); } } |
Expand full source codeCollapse full source codeView on TracView on GitHub