for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hemio\form;
/**
* Forms with the method POST
*
* @since 1.0
*/
class FormPost extends Abstract_\Form {
public function __construct($name, array $post = null, array $get = null, array $stored = []) {
parent::__construct($name, $post, $get, $stored);
$this['form_identifier'] = new InputHidden($this->getIdentifierName(), '');
$this->setAttribute('method', 'post');
}
public function submitted() {
return $this['form_identifier']->getValueUser() !== null;
public function getIdentifierName() {
return '__form_identifier';
public function correctSubmitted() {
return $this->submitted() && $this->dataValid();
public function getValueUser($key) {
return $this->getPost($key);