public function toText() { if ($this->checkPermissions()) { if ($this->downloadContent()) { $this->file->incrementDownloads(); } } return ''; }