Source

Apmgr / application / modules / unit / models / Lease.php

Full commit
<?php
/**
 * Created on Mar 12, 2010 by rnelson
 * @name apmgr
 * @package application.modules.unit.models
 * <p>
 * Stores the main lease info
 * </p>
 */
	
	
class Unit_Model_Lease extends ZFModel_ParentModel {    

    /**
    *@var effectiveDate
    */        
    protected $effectiveDate;
    
    /**
    *@var lastDay
    */        
    protected $lastDay; 
   
   /**
    *@var unitId
    */        
    protected $unitId;     
    
    /**
    *@var modelRentScheduleId
    */        
    protected $modelRentScheduleId;
    
   /**
    *@var userId
    */        
    protected $userId;
   
    /**
    * Constructor of this object
    */
    public function __construct(array $options = null) {
	// set user id to logged in user
	$auth = Zend_Auth::getInstance();	
	$auth->setStorage(new Zend_Auth_Storage_Session('wulfStorage'));
	$loggedIn = $auth->getIdentity();
	$this->setUserId( $loggedIn->id );
	
        parent::__construct( $options );                       
        $this->setDbTable('Unit_Model_DbTable_Lease'); 
    }    
         
   /**
    * startDate
      */ 
    public function setEffectiveDate( $var ) {
        $this->effectiveDate = $var;
    }
    
    public function getEffectiveDate() {
        return $this->effectiveDate;
    }
    
     /**
    * lastDay
      */ 
    public function setLastDay( $var ) {
        $this->lastDay = $var;
    }
    
    public function getLastDay() {
        return $this->lastDay;
    }
    
    /**
    * unitId
      */ 
    public function setUnitId( $var ) {
        $this->unitId = $var;
    }
    
    public function getUnitId() {
        return $this->unitId;
    }
    
     /**
      *  modelRentScheduleId
      **/ 
    public function setModelRentScheduleId( $var ) {
        $this->modelRentScheduleId = $var;
    }
    
    public function getModelRentScheduleId() {
        return $this->modelRentScheduleId;
    }
    
    /**
    * userId
    */ 
    public function setUserId( $var ) {
        $this->userId = $var;
    }
    
    public function getUserId() {
        return $this->userId;
    } 
}
?>