public function getPhoto($IDPhoto)
 {
     $IDPhoto = (int) $IDPhoto;
     $Photo = $this->fetchRow("IDFoto = '{$IDPhoto}' AND Estensione != ''");
     if (!$Photo) {
         throw new Exception("Could not find photo {$IDPhoto}");
     }
     return Zwe_Db_Table_Row::rewrite($Photo, $this->_rewritePhoto);
 }
Example #2
0
 public function getNews($IDNews)
 {
     $IDNews = intval($IDNews);
     $News = $this->fetchRow("IDNews = '{$IDNews}'");
     if (!$News) {
         throw new Exception("Could not find news {$IDNews}");
     }
     return Zwe_Db_Table_Row::rewrite($News, $this->_rewrite);
 }
Example #3
0
 public function getPage($IDPage)
 {
     $IDPage = (int) $IDPage;
     $Page = $this->fetchRow("IDPagina = '{$IDPage}'");
     if (!$Page) {
         throw new Exception("Could not find page {$IDPage}");
     }
     return Zwe_Db_Table_Row::rewrite($Page, $this->_rewrite);
 }