MagpieRSS::append( $el,  $text )

In this article

Source

function append($el, $text) {
	if (!$el) {
		return;
	}
	if ( $this->current_namespace )
	{
		if ( $this->initem ) {
			$this->concat(
				$this->current_item[ $this->current_namespace ][ $el ], $text);
		}
		elseif ($this->inchannel) {
			$this->concat(
				$this->channel[ $this->current_namespace][ $el ], $text );
		}
		elseif ($this->intextinput) {
			$this->concat(
				$this->textinput[ $this->current_namespace][ $el ], $text );
		}
		elseif ($this->inimage) {
			$this->concat(
				$this->image[ $this->current_namespace ][ $el ], $text );
		}
	}
	else {
		if ( $this->initem ) {
			$this->concat(
				$this->current_item[ $el ], $text);
		}
		elseif ($this->intextinput) {
			$this->concat(
				$this->textinput[ $el ], $text );
		}
		elseif ($this->inimage) {
			$this->concat(
				$this->image[ $el ], $text );
		}
		elseif ($this->inchannel) {
			$this->concat(
				$this->channel[ $el ], $text );
		}

	}
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.