Example #1
0
 public static function getBlog($IDUser, $Count, $Offset)
 {
     $Blogs = parent::getPageNews($IDUser, $Count, $Offset);
     foreach ($Blogs as &$Blog) {
         $TheBlog = new self();
         $TheBlog->copy($Blog);
         $Author = new App_Model_User();
         $Author->copy($Blog->Author);
         $TheBlog->Author = $Author;
         $Blog = $TheBlog;
     }
     return $Blogs;
 }
Example #2
0
 /**
  * Ricava le news dal database.
  */
 protected function specificPageInit()
 {
     $this->_news = Zwe_Model_News::getPageNews($this->IDPage);
 }