public function __construct($user, $apikey) { $this->user = $user; $this->apikey = $apikey; $this->data = array('api_key' => &$this->apikey, 'user' => &$this->user); return parent::__construct($this->url); }