SimplePie_IRI::set_path

Advertisement

Summery Summery

Set the ipath.

Syntax Syntax

SimplePie_IRI::set_path( string $ipath )

Parameters Parameters

$ipath

(Required)

Return Return

(bool)

Source Source

File: wp-includes/SimplePie/IRI.php

			$cache = null;
			return;
		}
		if (!$cache)
		{
			$cache = array();
		}

		$ipath = (string) $ipath;

		if (isset($cache[$ipath]))
		{
			$this->ipath = $cache[$ipath][(int) ($this->scheme !== null)];
		}
		else
		{
			$valid = $this->replace_invalid_with_pct_encoding($ipath, '!$&\'()*+,;=@:/');
			$removed = $this->remove_dot_segments($valid);

			$cache[$ipath] = array($valid, $removed);
			$this->ipath =  ($this->scheme !== null) ? $removed : $valid;
		}

		$this->scheme_normalization();
		return true;
	}

Advertisement

Advertisement

Leave a Reply