public function generate() { return sprintf('<input type="file" name="%s" id="ctrl_%s" class="upload%s"%s%s', $this->strName, $this->strId, $this->strClass != '' ? ' ' . $this->strClass : '', $this->getAttributes(), $this->strTagEnding); }