__invoke()
getController()
getSessionContainer()
setController()
setSessionContainer()
getEmptyUploadData()
getNonEmptyUploadData()
handleGetRequest()
handlePostRequest()
redirect()
setProtectedFormProperty()
traverseInputs()
$controller
$sessionContainer
Plugin to help facilitate Post/Redirect/Get for file upload forms (http://en.wikipedia.org/wiki/Post/Redirect/Get)
Requires that the Form's File inputs contain a 'fileRenameUpload' filter with the target option set: 'target' => /valid/target/path'. This is so the files are moved to a new location between requests. If this filter is not added, the temporary upload files will disappear between requests.
__invoke(\Zend\Form\FormInterface $form, string $redirect, bool $redirectToUrl) : bool | array | \Zend\Http\Response
\Zend\Form\FormInterface
string
Route or URL string (default: current route)
bool
Use $redirect as a URL string (default: false)
getController() : null | \Zend\Stdlib\DispatchableInterface
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::getController() |
---|
setController(\Zend\Stdlib\DispatchableInterface $controller) : void
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::setController() |
---|
\Zend\Stdlib\DispatchableInterface
setSessionContainer(\Zend\Session\Container $container) : \Zend\Mvc\Controller\Plugin\FilePostRedirectGet
getEmptyUploadData(\Zend\InputFilter\InputFilterInterface $inputFilter, array $data) : array
getNonEmptyUploadData(\Zend\InputFilter\InputFilterInterface $inputFilter, array $data) : array
handleGetRequest(\Zend\Form\FormInterface $form) : bool | array
handlePostRequest(\Zend\Form\FormInterface $form, string $redirect, bool $redirectToUrl) : \Zend\Http\Response
\Zend\Form\FormInterface
string
Route or URL string (default: current route)
bool
Use $redirect as a URL string (default: false)
redirect(string $redirect, bool $redirectToUrl) : \Zend\Http\Response
string
bool
\Zend\Mvc\Exception\RuntimeException |
---|
setProtectedFormProperty(\Zend\Form\FormInterface $form, string $property, mixed $value) : \Zend\Mvc\Controller\Plugin\FilePostRedirectGet
traverseInputs(\Zend\InputFilter\InputFilterInterface $inputFilter, array $values, \Zend\Mvc\Controller\Plugin\callable $callback) : array | null
\Zend\InputFilter\InputFilterInterface
array
\Zend\Mvc\Controller\Plugin\callable
array
null
$controller : null | \Zend\Stdlib\DispatchableInterface
inherited_from | \Zend\Mvc\Controller\Plugin\AbstractPlugin::$$controller |
---|