Exemple #1
0
 public function addAction()
 {
     $news = new Wsm_News();
     $news->setDate(date("Y-m-d H:i:s"));
     $news->setSignature('ZARZĄD WSM "OCHOTA"');
     $this->addToView('news', $news);
 }
Exemple #2
0
 private function parseRow($row)
 {
     if ($row == null) {
         return null;
     }
     $news = new Wsm_News();
     $news->setId($row['id']);
     $news->setTitle($row['title']);
     $news->setContent($row['content']);
     $news->setDate($row['date']);
     $news->setSignature($row['signature']);
     return $news;
 }