/** * Set the image for the feed. * * @param string $url URL of the image. * @param string $title Title of the image. * @param string $link Link of the image. * @param int $width Width of the image. * @param int $height Height of the image. * @param string $description 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); }
/** * Set the image for the feed. * * @return void * @param string $URL URL of the image. * @param string $title Title of the image. * @param string $link Link of the image. * @param int[optional] $width Width of the image. * @param int[optional] $height Height of the image. * @param string[optional] $description Description of the image. */ public function setImage($URL, $title, $link, $width = null, $height = null, $description = null) { // add UTM-parameters $link = FrontendModel::addURLParameters($link, array('utm_source' => 'feed', 'utm_medium' => 'rss', 'utm_campaign' => SpoonFilter::urlise($this->getTitle()))); // call the parent parent::setImage($URL, $title, $link, $width, $height, $description); }
/** * Set the sorting method. * * @param string[optional] $sortingMethod Set the sorting method that should be used, possible values are: desc, asc. */ public function setSortingMethod($sortingMethod = 'desc') { $aAllowedSortingMethods = array('asc', 'desc'); // set sorting method self::$sortingMethod = SpoonFilter::getValue($sortingMethod, $aAllowedSortingMethods, 'desc'); }