コード例 #1
0
ファイル: User.php プロジェクト: ravikathaitarm01/fluenz1
 public function __construct($id)
 {
     parent::__construct();
     if (!$id instanceof \MongoId) {
         $id = new \MongoId($id);
     }
     $this->id = $id;
 }
コード例 #2
0
ファイル: Notify.php プロジェクト: ravikathaitarm01/fluenz1
 public function __construct()
 {
     parent::__construct();
     $this->_display = new Display();
     $this->_display->attach('Url', new Url(), true);
     $this->_display->attach('Time', new Time(), true);
     $this->_display->attach('MongoDoc', new MongoDoc(), true);
     $this->_mail = new Mail();
     $this->_user = new SimpleUser(null);
 }