public function getIconUrl($base = false) { if (empty($this->_icon_url) and $this->getIconId()) { if ($this->getIcon() and !$base) { $this->_icon_url = Media_Model_Library_Image::getImagePathTo($this->getIcon(), $this->getAppId()); } else { $icon = new Media_Model_Library_Image(); $icon->find($this->getIconId()); $this->_icon_url = $icon->getUrl(); } } return $this->_icon_url; }