extranet/application/models/CommandesStatut.php

23 lines
458 B
PHP
Raw Normal View History

2011-05-19 08:46:55 +00:00
<?php
class Application_Model_CommandesStatut extends Zend_Db_Table_Abstract
{
protected $_name = 'commandes_statut';
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');
$result = $this->fetchAll($sql);
return $result;
}
2011-05-19 08:46:55 +00:00
}