17 lines
345 B
PHP
17 lines
345 B
PHP
<?php
|
|
class Application_Model_ExtractionCommandes extends Zend_Db_Table_Abstract
|
|
{
|
|
protected $_name = 'commandes';
|
|
|
|
public function insert(array $data)
|
|
{
|
|
// Ajout d'un timestamp
|
|
if (empty($data['dateAdded'])) {
|
|
$data['dateAdded'] = date('Y-m-d H:i:s');
|
|
}
|
|
return parent::insert($data);
|
|
}
|
|
|
|
}
|
|
|