/** * Formats a nicely formatted Image url * * @param Doghouse_Carousel_Model_Item $item item to save * @param $forOutput If the URL is generated to be outputted in an HTML attribute, * we'll need to escape it * * @return string */ public function getImage(Doghouse_Carousel_Model_Item $item, $forOutput = false) { $url = $this->getImageUrl() . $item->getImage(); if ($forOutput) { $url = $this->escapeUrl($url); } return $url; }
/** * Formats a nicely formatted Image url * * @param Doghouse_Carousel_Model_Item $item [description] * * @return [String] url */ public function getImage(Doghouse_Carousel_Model_Item $item) { return $this->getImageUrl() . $item->getImage(); }