MagpieRSS::feed_end_element()publicWP 1.0

Метод класса: MagpieRSS{}

Хуков нет.

Возвращает

null. Ничего (null).

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

$MagpieRSS = new MagpieRSS();
$MagpieRSS->feed_end_element ( $p, $el );
$p (обязательный)
-
$el (обязательный)
-

Код MagpieRSS::feed_end_element() WP 6.5.2

function feed_end_element ($p, $el) {
	$el = strtolower($el);

	if ( $el == 'item' or $el == 'entry' )
	{
		$this->items[] = $this->current_item;
		$this->current_item = array();
		$this->initem = false;
	}
	elseif ($this->feed_type == RSS and $this->current_namespace == '' and $el == 'textinput' )
	{
		$this->intextinput = false;
	}
	elseif ($this->feed_type == RSS and $this->current_namespace == '' and $el == 'image' )
	{
		$this->inimage = false;
	}
	elseif ($this->feed_type == ATOM and in_array($el, $this->_CONTENT_CONSTRUCTS) )
	{
		$this->incontent = false;
	}
	elseif ($el == 'channel' or $el == 'feed' )
	{
		$this->inchannel = false;
	}
	elseif ($this->feed_type == ATOM and $this->incontent  ) {
		// balance tags properly
		// note: This may not actually be necessary
		if ( $this->stack[0] == $el )
		{
			$this->append_content("</$el>");
		}
		else {
			$this->append_content("<$el />");
		}

		array_shift( $this->stack );
	}
	else {
		array_shift( $this->stack );
	}

	$this->current_namespace = false;
}