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