Пример #1
0
 public function save(Default_Model_Logs $value)
 {
     $data = array('id' => $value->getId(), 'idUser' => $value->getIdUser(), 'idTarget' => $value->getIdTarget(), 'modul' => $value->getModul(), 'actionType' => $value->getActionType(), 'actionDone' => $value->getActionDone());
     if (null === ($id = $value->getId())) {
         $data['created'] = new Zend_Db_Expr('NOW()');
         $id = $this->getDbTable()->insert($data);
     }
     return $id;
 }