Source for file Ained.php

Documentation is available at Ained.php

  1. <?php
  2. /**
  3.  * @ignore
  4.  */
  5.     class Model_Ained extends Zend_Db_Table_Abstract {
  6.         
  7.         protected $_name 'aine';
  8.         
  9.         public function fetchAined()
  10.         {
  11.             $select $this->select();
  12.             $select->from(array('a' => 'aine')array('AineID''AineNimi'));
  13.             
  14.             return $this->fetchAll($select);
  15.         }
  16.         
  17.         public function fetchAineID($nimetus)
  18.         {
  19.             $select $this->select();
  20.             $select->from(array('a' => 'aine')array('AineID''AineNimi'))
  21.                 ->where("AineNimi = ?"$nimetus);
  22.             
  23.             return $this->fetchRow($select);
  24.         }
  25.         
  26.         public function fetchAinedDetailed()
  27.         {
  28.             $select $this->select();
  29.             $select->setIntegrityCheck(false)
  30.             $select->from(array('a' => 'aine')array('AineID''AineNimi''LisajaID''Ajatempel'))
  31.                 ->join(array('k' => 'kasutaja')'k.KasutajaID=a.LisajaID'array('Kasutajanimi'));
  32.             $select->order('Ajatempel DESC');
  33.             return $this->fetchAll($select);
  34.         }
  35.         
  36.     }
  37. ?>

Documentation generated on Wed, 15 Jun 2011 15:58:38 +0300 by phpDocumentor 1.4.1