| @@ 841-851 (lines=11) @@ | ||
| 838 | * @param string $iuserinfo |
|
| 839 | * @return bool |
|
| 840 | */ |
|
| 841 | protected function set_userinfo($iuserinfo) { |
|
| 842 | if ($iuserinfo === null) { |
|
| 843 | $this->iuserinfo = null; |
|
| 844 | } |
|
| 845 | else { |
|
| 846 | $this->iuserinfo = $this->replace_invalid_with_pct_encoding($iuserinfo, '!$&\'()*+,;=:'); |
|
| 847 | $this->scheme_normalization(); |
|
| 848 | } |
|
| 849 | ||
| 850 | return true; |
|
| 851 | } |
|
| 852 | ||
| 853 | /** |
|
| 854 | * Set the ihost. Returns true on success, false on failure (if there are |
|
| @@ 957-966 (lines=10) @@ | ||
| 954 | * @param string $iquery |
|
| 955 | * @return bool |
|
| 956 | */ |
|
| 957 | protected function set_query($iquery) { |
|
| 958 | if ($iquery === null) { |
|
| 959 | $this->iquery = null; |
|
| 960 | } |
|
| 961 | else { |
|
| 962 | $this->iquery = $this->replace_invalid_with_pct_encoding($iquery, '!$&\'()*+,;=:@/?', true); |
|
| 963 | $this->scheme_normalization(); |
|
| 964 | } |
|
| 965 | return true; |
|
| 966 | } |
|
| 967 | ||
| 968 | /** |
|
| 969 | * Set the ifragment. |
|
| @@ 974-983 (lines=10) @@ | ||
| 971 | * @param string $ifragment |
|
| 972 | * @return bool |
|
| 973 | */ |
|
| 974 | protected function set_fragment($ifragment) { |
|
| 975 | if ($ifragment === null) { |
|
| 976 | $this->ifragment = null; |
|
| 977 | } |
|
| 978 | else { |
|
| 979 | $this->ifragment = $this->replace_invalid_with_pct_encoding($ifragment, '!$&\'()*+,;=:@/?'); |
|
| 980 | $this->scheme_normalization(); |
|
| 981 | } |
|
| 982 | return true; |
|
| 983 | } |
|
| 984 | ||
| 985 | /** |
|
| 986 | * Convert an IRI to a URI (or parts thereof) |
|