Refactored Form.

This commit is contained in:
Dmitry Khomutov 2018-03-04 17:50:08 +07:00
commit cfe93434ad
No known key found for this signature in database
GPG key ID: EC19426474B37AAC
45 changed files with 58 additions and 83 deletions

View file

@ -0,0 +1,27 @@
<?php
namespace PHPCensor\Form\Element;
use PHPCensor\Form\Input;
use PHPCensor\View;
class Button extends Input
{
/**
* @return boolean
*/
public function validate()
{
return true;
}
/**
* @param View $view
*/
protected function onPreRender(View &$view)
{
parent::onPreRender($view);
$view->type = 'button';
}
}