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

SimplePie::__construct() WP 1.0

The SimplePie class contains feed level data and options

To use SimplePie, create the SimplePie object with no parameters. You can then set configuration options using the provided methods. After setting them, you must initialise the feed using $feed->init(). At that point the object's methods and properties will be available to you.

Previously, it was possible to pass in the feed URL along with cache options directly into the constructor. This has been removed as of 1.3 as it caused a lot of confusion.

Это метод класса: SimplePie

  • C версии 1.0 Preview Release

Хуков нет.


Ничего (null).


$SimplePie = new SimplePie();
$var = $SimplePie->__construct();

Код SimplePie:: construct: wp-includes/class-simplepie.php WP 5.2.1

public function __construct()
	if (version_compare(PHP_VERSION, '5.2', '<'))
		trigger_error('PHP 4.x, 5.0 and 5.1 are no longer supported. Please upgrade to PHP 5.2 or newer.');

	// 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)
		trigger_error('Passing parameters to the constructor is no longer supported. Please use set_feed_url(), set_cache_location(), and set_cache_location() directly.', $level);

		$args = func_get_args();
		switch (count($args)) {
			case 3:
			case 2:
			case 1: