2011-05-19 08:46:55 +00:00
|
|
|
<?php
|
|
|
|
class Application_Model_CommandesStatut extends Zend_Db_Table_Abstract
|
|
|
|
{
|
|
|
|
protected $_name = 'commandes_statut';
|
2011-07-12 07:41:15 +00:00
|
|
|
|
|
|
|
public function getStatut()
|
|
|
|
{
|
|
|
|
$sql = $this->select()->order('ordre ASC');
|
|
|
|
$result = $this->fetchAll($sql);
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getStatutByTypeCommande($type)
|
|
|
|
{
|
|
|
|
$sql = $this->select()
|
|
|
|
->where('typeCommande = ?', $type)
|
2011-08-04 16:00:20 +00:00
|
|
|
->order('ordre ASC');
|
2011-07-12 07:41:15 +00:00
|
|
|
$result = $this->fetchAll($sql);
|
|
|
|
return $result;
|
|
|
|
}
|
|
|
|
|
2011-05-19 08:46:55 +00:00
|
|
|
}
|