Pop\Feed\Format\Atom\Youtube::__construct PHP Метод

__construct() публичный Метод

Method to create a Youtube Atom feed object
public __construct ( mixed $options, integer $limit ) : Youtube
$options mixed
$limit integer
Результат Youtube
    public function __construct($options, $limit = 0)
    {
        // Attempt to get the correct URL to parse
        if (is_array($options)) {
            if (isset($options['name'])) {
                $this->url = str_replace('[{name}]', $options['name'], $this->urls['name']);
            } else {
                if (isset($options['id'])) {
                    $this->url = str_replace('[{id}]', $options['id'], $this->urls['id']);
                }
            }
        }
        parent::__construct($options, $limit);
    }