public function __construct() { $this->_publicKey = self::getToken(32); $this->_privateKey = self::getToken(64); $this->user = App::i()->user; parent::__construct(); }
public function __construct() { parent::__construct(); $this->agents = new \Doctrine\Common\Collections\ArrayCollection(); $this->lastLoginTimestamp = new \DateTime(); }
public function __construct() { $this->relations = new \Doctrine\Common\Collections\ArrayCollection(); parent::__construct(); }
/** * Constructor */ public function __construct($user = null) { $this->user = $user ? $user : App::i()->user; $this->type = 1; parent::__construct(); }
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(); }
public function __construct() { $this->children = new \Doctrine\Common\Collections\ArrayCollection(); $this->owner = App::i()->user->profile; parent::__construct(); }