SimplePie_Enclosure::__construct() public WP 1.0
Constructor, used to input the data
For documentation on all the parameters, see the corresponding properties and their accessors
{} Это метод класса: SimplePie_Enclosure{}
Хуков нет.
Возвращает
null
. Null. Ничего.
Использование
$SimplePie_Enclosure = new SimplePie_Enclosure(); $SimplePie_Enclosure->__construct( $link, $type, $length, $javascript, $bitrate, $captions, $categories, $channels, $copyright, $credits, $description, $duration, $expression, $framerate, $hashes, $height, $keywords, $lang, $medium, $player, $ratings, $restrictions, $samplingrate, $thumbnails, $title, $width );
- $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
Код SimplePie_Enclosure::__construct() SimplePie Enclosure:: construct WP 5.7
public function __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)
{
$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
}