<?php

class Model_DbTable_Models extends Zend_Db_Table
{
    protected $_name = 'Models';
    
    public function getAll($id)
    {
       $select = $this->select();
            $select->from(array('U' => $this->_name))
						// ->join(array('D' => 'usermeta'),'D.uid = U.id')
						 //->join(array('T' => 'projects_type'),'T.ID = P.Type',array("Type"=>"T.Name")) 
						 //->join(array('G' => 'grantsheaders'),'G.GHID = P.GHID',array("Header"=>"G.Title")) 
						 
						 ->where("Website ='".$id."' ");
               ;
            $select->setIntegrityCheck(false);
            return $this->fetchAll($select);
						
    }
		
		 public function getActions($id)
    {
       $select = $this->select();
            $select->from(array('U' => "Models_Actions"))
						// ->join(array('D' => 'usermeta'),'D.uid = U.id')
						 //->join(array('T' => 'projects_type'),'T.ID = P.Type',array("Type"=>"T.Name")) 
						 //->join(array('G' => 'grantsheaders'),'G.GHID = P.GHID',array("Header"=>"G.Title")) 
						 
						 ->where("MID ='".$id."' ");
               ;
            $select->setIntegrityCheck(false);
            return $this->fetchAll($select);
						
    }
		
		
		
}