public function __construct($url) { parent::__construct($url); if (!empty($_FILES)) { $this->headers = array('Content-type' => 'text/html'); } }
protected function get_base_params($data) { if (!User::get('id')) { return false; } $this->user = User::get('id'); return parent::get_base_params($data); }