WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

SimplePie_IRI::set_authority() public WP 1.0

Set the authority. Returns true on success, false on failure (if there are any invalid characters).

{} Это метод класса: SimplePie_IRI{}

Хуков нет.

Возвращает

true/false.

Использование

$SimplePie_IRI = new SimplePie_IRI();
$SimplePie_IRI->set_authority( $authority, $clear_cache );
$authority(строка) (обязательный)

Код SimplePie_IRI::set_authority() WP 5.5.3

<?php
public function set_authority($authority, $clear_cache = false)
{
	static $cache;
	if ($clear_cache)
	{
		$cache = null;
		return;
	}
	if (!$cache)
		$cache = array();

	if ($authority === null)
	{
		$this->iuserinfo = null;
		$this->ihost = null;
		$this->port = null;
		return true;
	}
	elseif (isset($cache[$authority]))
	{
		list($this->iuserinfo,
			 $this->ihost,
			 $this->port,
			 $return) = $cache[$authority];

		return $return;
	}

	$remaining = $authority;
	if (($iuserinfo_end = strrpos($remaining, '@')) !== false)
	{
		$iuserinfo = substr($remaining, 0, $iuserinfo_end);
		$remaining = substr($remaining, $iuserinfo_end + 1);
	}
	else
	{
		$iuserinfo = null;
	}
	if (($port_start = strpos($remaining, ':', strpos($remaining, ']'))) !== false)
	{
		if (($port = substr($remaining, $port_start + 1)) === false)
		{
			$port = null;
		}
		$remaining = substr($remaining, 0, $port_start);
	}
	else
	{
		$port = null;
	}

	$return = $this->set_userinfo($iuserinfo) &&
			  $this->set_host($remaining) &&
			  $this->set_port($port);

	$cache[$authority] = array($this->iuserinfo,
							   $this->ihost,
							   $this->port,
							   $return);

	return $return;
}