webservice/application/models/AssoActes.php

17 lines
368 B
PHP
Raw Normal View History

<?php
class Application_Model_AssoActes extends Zend_Db_Table_Abstract
{
2013-02-21 17:03:56 +00:00
protected $_name = 'asso_actes';
protected $_schema = 'jo';
public function insert(array $data)
{
// Ajout d'un timestamp
if (empty($data['dateInsert'])) {
$data['dateInsert'] = date('Y-m-d H:i:s');
}
return parent::insert($data);
}
}