Requests_IRI::__set()
最后更新于:2021-11-26 04:01:05
Requests_IRI::__set( string$name, mixed$value)Overload __set() to provide access via properties
参数
- $name
-
(string) (Required) Property name
- $value
-
(mixed) (Required) Property value
源文件
文件: gc-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);
}
}