/** * @param string $title The title for the item. * @param string $link The link for the item. * @param string $description 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); }