SimplePie_Enclosure::__construct

Advertisement

Summery Summery

Constructor, used to input the data

Syntax Syntax

SimplePie_Enclosure::__construct( $link = null,  $type = null,  $length = null,  $javascript = null,  $bitrate = null,  $captions = null,  $categories = null,  $channels = null,  $copyright = null,  $credits = null,  $description = null,  $duration = null,  $expression = null,  $framerate = null,  $hashes = null,  $height = null,  $keywords = null,  $lang = null,  $medium = null,  $player = null,  $ratings = null,  $restrictions = null,  $samplingrate = null,  $thumbnails = null,  $title = null,  $width = null )

Description Description

For documentation on all the parameters, see the corresponding properties and their accessors

Source Source

File: wp-includes/SimplePie/Enclosure.php

	{
		$this->bitrate = $bitrate;
		$this->captions = $captions;
		$this->categories = $categories;
		$this->channels = $channels;
		$this->copyright = $copyright;
		$this->credits = $credits;
		$this->description = $description;
		$this->duration = $duration;
		$this->expression = $expression;
		$this->framerate = $framerate;
		$this->hashes = $hashes;
		$this->height = $height;
		$this->keywords = $keywords;
		$this->lang = $lang;
		$this->length = $length;
		$this->link = $link;
		$this->medium = $medium;
		$this->player = $player;
		$this->ratings = $ratings;
		$this->restrictions = $restrictions;
		$this->samplingrate = $samplingrate;
		$this->thumbnails = $thumbnails;
		$this->title = $title;
		$this->type = $type;
		$this->width = $width;

		if (class_exists('idna_convert'))
		{
			$idn = new idna_convert();
			$parsed = SimplePie_Misc::parse_url($link);
			$this->link = SimplePie_Misc::compress_parse_url($parsed['scheme'], $idn->encode($parsed['authority']), $parsed['path'], $parsed['query'], $parsed['fragment']);
		}
		$this->handler = $this->get_handler(); // Needs to load last
	}

Advertisement

Advertisement

Leave a Reply