Frontend\Core\Engine\Rss::setImage PHP Method

setImage() public method

Set the image for the feed.
public setImage ( string $url, string $title, string $link, integer $width = null, integer $height = null, string $description = null )
$url string URL of the image.
$title string Title of the image.
$link string Link of the image.
$width integer Width of the image.
$height integer Height of the image.
$description string Description of the image.
    public function setImage($url, $title, $link, $width = null, $height = null, $description = null)
    {
        // add UTM-parameters
        $link = Model::addURLParameters($link, array('utm_source' => 'feed', 'utm_medium' => 'rss', 'utm_campaign' => CommonUri::getUrl($this->getTitle())));
        // call the parent
        parent::setImage($url, $title, $link, $width, $height, $description);
    }