public function setNb_views($nb_views)
 {
     $this->__load();
     return parent::setNb_views($nb_views);
 }
Exemplo n.º 2
0
 /**
  * Increment nb of views in database for chronicle
  * @param Chronicle $chronicle
  */
 private function incrementChronicleInDB(Chronicle $chronicle)
 {
     $chronicle->setNb_views($chronicle->getNb_views() + 1);
     ChronicleDao::getInstance()->update($chronicle);
 }