Source for file Osaleja.php
Documentation is available at Osaleja.php
* Model for handling queries with database table 'osaleja'.
* @author Margus Sellin <margus@bitweb.ee>
* @copyright Copyright (C) 2011. All rights reserved. Margus Sellin
* Database query that fetches a row from 'osaleja' table where
* column 'nimi' equals the given parameter.
* @param string $name Participant name
* @return mixed $result Query resultset
$select =
$this->select();
->where('nimi = ?', $name);
$result =
$this->fetchRow($select);
public function fetchIDByNimi($nimi)
$select =
$this->select();
->where('nimi = ?', $nimi);
return $this->fetchRow($select);
public function fetchAllJSON()
$select =
$this->select();
$select->from(array('o' =>
'osaleja'), array('id', 'nimi AS text'));
return $this->fetchAll($select);
Documentation generated on Mon, 20 Jun 2011 05:43:07 +0300 by phpDocumentor 1.4.1