Beispiel #1
0
 /**
  * 
  * @return Life_Model
  */
 public static function &instance()
 {
     if (!is_object(Life_Model::$instances)) {
         // Create a new instance
         Life_Model::$instances = new Life_Model();
     }
     return Life_Model::$instances;
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     $this->model = Life_Model::instance();
     //$this->user_id = 10614401;
     $this->type = array(0 => "", 1 => array(1 => "转让", 2 => "求购"), 2 => array(1 => "出租", 2 => "求租"));
     $this->unit = array(0 => "", 1 => "元", 2 => "元/月");
 }