17 lines
368 B
PHP
17 lines
368 B
PHP
<?php
|
|
class Application_Model_AssoActes extends Zend_Db_Table_Abstract
|
|
{
|
|
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);
|
|
}
|
|
}
|
|
|