示例#1
0
 /**
  * Get an HTML-formatted link to the PDF of the menu
  */
 protected function getMenuFormattedLink()
 {
     $menuURL = $this->getMenuURL();
     if (!is_null($menuURL)) {
         return getFormattedURL($this->getMenuURL(), $this->isDayMenu());
     } else {
         return getFallbackURL($this->getBaseMenuURL());
     }
 }
示例#2
0
文件: utils.php 项目: biwax/OVOMA
function getFallbackURL($url)
{
    if (endsInsensitiveWith($url, '.pdf')) {
        return getFormattedURL(getBaseURL($url));
    }
    return getFormattedURL($url);
}