SimplePie::__destruct

Advertisement

Summery Summery

Remove items that link back to this before destroying this object

Syntax Syntax

SimplePie::__destruct()

Source Source

File: wp-includes/class-simplepie.php

	public function __construct()
	{
		if (version_compare(PHP_VERSION, '5.6', '<'))
		{
			trigger_error('Please upgrade to PHP 5.6 or newer.');
			die();
		}

		// Other objects, instances created here so we can set options on them
		$this->sanitize = new SimplePie_Sanitize();
		$this->registry = new SimplePie_Registry();

		if (func_num_args() > 0)
		{
			$level = defined('E_USER_DEPRECATED') ? E_USER_DEPRECATED : E_USER_WARNING;
			trigger_error('Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_duration() directly.', $level);

			$args = func_get_args();
			switch (count($args)) {
				case 3:
					$this->set_cache_duration($args[2]);
				case 2:

Advertisement

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.