public function __construct($name, $action = null, $method = 'post', $hash = null, $useToken = true)
{
$this->URL = Model::getContainer()->get('url');
$this->header = Model::getContainer()->get('header');
$name = (string) $name;
if ($hash !== null && mb_strlen($hash) > 0) {
$hash = (string) $hash;
// check if the # is present
if ($hash[0] !== '#') {
$hash = '#' . $hash;
}
} else {
$hash = null;
}
$useToken = (bool) $useToken;
$action = $action === null ? $this->URL->getQueryString() : (string) $action;
// call the real form-class
parent::__construct((string) $name, $action . $hash, $method, (bool) $useToken);
// add default classes
$this->setParameter('id', $name);
$this->setParameter('class', 'forkForms submitWithLink');
}