protected function getAs($as = null) { if (!is_null($as)) { return 'filename="' . $as . '"'; } return ""; }