Source for file Ained.php
Documentation is available at Ained.php
class Model_Ained extends Zend_Db_Table_Abstract {
protected $_name =
'aine';
public function fetchAined()
$select =
$this->select();
$select->from(array('a' =>
'aine'), array('AineID', 'AineNimi'));
return $this->fetchAll($select);
public function fetchAineID($nimetus)
$select =
$this->select();
$select->from(array('a' =>
'aine'), array('AineID', 'AineNimi'))
->where("AineNimi = ?", $nimetus);
return $this->fetchRow($select);
public function fetchAinedDetailed()
$select =
$this->select();
$select->setIntegrityCheck(false);
$select->from(array('a' =>
'aine'), array('AineID', 'AineNimi', 'LisajaID', 'Ajatempel'))
->join(array('k' =>
'kasutaja'), 'k.KasutajaID=a.LisajaID', array('Kasutajanimi'));
$select->order('Ajatempel DESC');
return $this->fetchAll($select);
Documentation generated on Wed, 15 Jun 2011 15:58:38 +0300 by phpDocumentor 1.4.1