MagpieRSS::feed_end_element()publicWP 1.0

Method of the class: MagpieRSS{}

No Hooks.

Return

null. Nothing (null).

Usage

$MagpieRSS = new MagpieRSS();
$MagpieRSS->feed_end_element ( $p, $el );
$p (required)
-
$el (required)
-

MagpieRSS::feed_end_element() code WP 6.6.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;
}