extranet/application/models/CommandesKbis.php

24 lines
503 B
PHP
Raw Normal View History

2011-05-19 08:46:55 +00:00
<?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;
}
2011-05-19 08:46:55 +00:00
}