Beispiel #1
0
 /**
  * 单例模式
  * @return Contact_Model
  */
 public static function &instance()
 {
     if (!isset(self::$instance)) {
         self::$instance = new Deal_Model();
     }
     return self::$instance;
 }
Beispiel #2
0
 public function __construct()
 {
     parent::__construct();
     $this->model = Deal_Model::instance();
 }