Source for file Kuupaevad.php
Documentation is available at Kuupaevad.php
* Model for handling queries with database table 'voistlustekuupaevad'.
* @author Margus Sellin <margus@bitweb.ee>
* @copyright Copyright (C) 2011. All rights reserved. Margus Sellin
protected $_name =
'voistlustekuupaevad';
* Database query that fetches all rows from 'voistlustekuupaevad'
* table in ascending order.
* @return mixed $result Query resultset
$select =
$this->select();
$result =
$this->fetchAll($select);
* Database query that fetches a row from 'voistlustekuupaevad' table
* where column 'Kuupaev' equals the given parameter.
* @param string $date Date string
* @return mixed $result Query resultset
$select =
$this->select();
->where('Kuupaev = ?', $date);
$result =
$this->fetchRow($select);
public function fetchIDByKuupaevAineVoistlus($kuupaev, $aineID, $voistlus)
$select =
$this->select();
->where('Kuupaev = ?', $kuupaev)
->where('AineID = ?', $aineID)
->where('VoistluseID = ?', $voistlus);
return $this->fetchRow($select);
Documentation generated on Mon, 20 Jun 2011 05:43:06 +0300 by phpDocumentor 1.4.1