batch/application/models/JoLiensRef.php
Michael RICOIS c5d47727a5 Add models
2013-07-17 09:53:33 +00:00

16 lines
367 B
PHP

<?php
class Application_Model_JoLiensRef extends Zend_Db_Table_Abstract
{
protected $_name = 'liensRef';
protected $_schema = 'jo';
public function insert(array $data)
{
// Ajout d'un timestamp
if (empty($data['dateInsert'])) {
$data['dateInsert'] = date('YmdHis');
}
return parent::insert($data);
}
}