Esempio n. 1
0
 public function __construct($id)
 {
     parent::__construct();
     if (!$id instanceof \MongoId) {
         $id = new \MongoId($id);
     }
     $this->id = $id;
 }
Esempio n. 2
0
 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);
 }