renderHiddenId(); } /** * Render a hidden form element with the progress id * * @return string */ public function renderHiddenId() { $attributes = array(); $attributes['id'] = 'progress_key'; $attributes['name'] = $this->getName(); $attributes['type'] = 'hidden'; $attributes['value'] = $this->getValue(); return sprintf( 'createAttributesString($attributes), $this->getInlineClosingBracket() ); } /** * @return string */ protected function getName() { return 'UPLOAD_IDENTIFIER'; } /** * @return string */ protected function getValue() { return uniqid(); } }