Frontend\Core\Engine\RssItem::__construct PHP Method

__construct() public method

public __construct ( string $title, string $link, string $description )
$title string The title for the item.
$link string The link for the item.
$description string The content for the item.
    public function __construct($title, $link, $description)
    {
        // decode
        $title = \SpoonFilter::htmlspecialcharsDecode($title);
        $description = \SpoonFilter::htmlspecialcharsDecode($description);
        // set UTM-campaign
        $this->utm['utm_campaign'] = CommonUri::getUrl($title);
        // call parent
        parent::__construct($title, Model::addURLParameters($link, $this->utm), $description);
        // set some properties
        $this->setGuid($link, true);
    }