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