Source for file Voistlused.php
Documentation is available at Voistlused.php
* Model for handling queries with database table 'voistlus'.
* @author Margus Sellin <margus@bitweb.ee>
* @copyright Copyright (C) 2011. All rights reserved. Margus Sellin
protected $_name =
'voistlus';
$select =
$this->select();
return $this->fetchAll($select);
$select =
$this->select();
$select->from(array('v' =>
'voistlus'), array('VoistluseID', 'VoistluseNimi'));
return $this->fetchAll($select);
$select =
$this->select();
$select->from(array('v' =>
'voistlus'), array('VoistluseID', 'tulemustabel'))
->where("VoistluseID = ?", $ID);
return $this->fetchRow($select);
$select =
$this->select();
$select->setIntegrityCheck(false);
$select->from(array('v' =>
'voistlus'), array('VoistluseID', 'VoistluseNimi', 'LisajaID', 'Ajatempel'))
->join(array('k' =>
'kasutaja'), 'k.KasutajaID=v.LisajaID', array('Kasutajanimi'));
$select->order('Ajatempel DESC');
return $this->fetchAll($select);
Documentation generated on Tue, 14 Jun 2011 21:12:02 +0300 by phpDocumentor 1.4.1