extranet/application/models/CommandesKbis.php
2011-06-27 16:08:18 +00:00

24 lines
503 B
PHP

<?php
class Application_Model_CommandesKbis extends Zend_Db_Table_Abstract
{
protected $_name = 'commandes_kbis';
public function getCommandesKbisById($id)
{
$sql = $this->select()
->where('id = ?', $id);
$result = $this->getAdapter()->fetchAll($sql);
return $result;
}
public function getCommandesKbisBySiren($siren)
{
$sql = $this->select()
->where('siren = ?', $siren)
->order('dateCommande ASC');
$result = $this->getAdapter()->fetchAll($sql);
return $result;
}
}