Example #1
0
 public function __construct()
 {
     $this->_publicKey = self::getToken(32);
     $this->_privateKey = self::getToken(64);
     $this->user = App::i()->user;
     parent::__construct();
 }
Example #2
0
 public function __construct()
 {
     parent::__construct();
     $this->agents = new \Doctrine\Common\Collections\ArrayCollection();
     $this->lastLoginTimestamp = new \DateTime();
 }
Example #3
0
 public function __construct()
 {
     $this->relations = new \Doctrine\Common\Collections\ArrayCollection();
     parent::__construct();
 }
Example #4
0
 /**
  * Constructor
  */
 public function __construct($user = null)
 {
     $this->user = $user ? $user : App::i()->user;
     $this->type = 1;
     parent::__construct();
 }
Example #5
0
 public function __construct()
 {
     $this->requesterUser = App::i()->user;
     parent::__construct();
 }
 function __construct()
 {
     $this->owner = App::i()->user->profile;
     parent::__construct();
 }
 /**
  * Creates a new file from upload
  * @example array(
  *              name => filename.jpg
  *              type => mime/type
  *              tmp_name => /tmp/tmpfile
  *              error => 0
  *              size => 1234567
  *          )
  * @param array $file
  */
 public function __construct(array $tmp_file)
 {
     $this->tmpFile = $tmp_file;
     $this->md5 = md5_file($tmp_file['tmp_name']);
     $this->name = $tmp_file['name'];
     $this->mimeType = $tmp_file['type'];
     if (isset($tmp_file['parent'])) {
         $this->parent = $tmp_file['parent'];
     }
     parent::__construct();
 }
Example #8
0
 public function __construct()
 {
     $this->children = new \Doctrine\Common\Collections\ArrayCollection();
     $this->owner = App::i()->user->profile;
     parent::__construct();
 }