Lines Matching refs:base
231 * @param IRI|string $base (Absolute) Base IRI
235 public static function absolutize($base, $relative) argument
245 if (!($base instanceof IRI)) {
246 $base = new IRI($base);
248 if ($base->scheme !== null && $base->is_valid()) {
252 $target->scheme = $base->scheme;
255 $target->scheme = $base->scheme;
256 $target->iuserinfo = $base->iuserinfo;
257 $target->ihost = $base->ihost;
258 $target->port = $base->port;
262 …} elseif (($base->iuserinfo !== null || $base->ihost !== null || $base->port !== null) && $base->i…
264 } elseif (($last_segment = strrpos($base->ipath, '/')) !== false) {
265 … $target->ipath = substr($base->ipath, 0, $last_segment + 1) . $relative->ipath;
272 $target->ipath = $base->ipath;
275 } elseif ($base->iquery !== null) {
276 $target->iquery = $base->iquery;
282 $target = clone $base;