Fixing doc block issues

This commit is contained in:
Daniel Hensby 2015-06-14 12:49:37 +01:00
parent 7933617a25
commit 2b9ccda06b

View File

@ -55,27 +55,27 @@ class Form extends RequestHandler {
public $IncludeFormTag = true; public $IncludeFormTag = true;
/** /**
* @var FieldList * @var FieldList|null
*/ */
protected $fields; protected $fields;
/** /**
* @var FieldList * @var FieldList|null
*/ */
protected $actions; protected $actions;
/** /**
* @var Controller * @var Controller|null
*/ */
protected $controller; protected $controller;
/** /**
* @var string * @var string|null
*/ */
protected $name; protected $name;
/** /**
* @var Validator * @var Validator|null
*/ */
protected $validator; protected $validator;
@ -90,12 +90,12 @@ class Form extends RequestHandler {
protected $strictFormMethodCheck = false; protected $strictFormMethodCheck = false;
/** /**
* @var string * @var string|null
*/ */
protected static $current_action; protected static $current_action;
/** /**
* @var DataObject $record Populated by {@link loadDataFrom()}. * @var DataObject|null $record Populated by {@link loadDataFrom()}.
*/ */
protected $record; protected $record;
@ -112,7 +112,7 @@ class Form extends RequestHandler {
* Useful to open a new window upon * Useful to open a new window upon
* form submission. * form submission.
* *
* @var string * @var string|null
*/ */
protected $target; protected $target;
@ -121,7 +121,7 @@ class Form extends RequestHandler {
* <legend> element before the <fieldset> * <legend> element before the <fieldset>
* in Form.ss template. * in Form.ss template.
* *
* @var string * @var string|null
*/ */
protected $legend; protected $legend;
@ -131,22 +131,22 @@ class Form extends RequestHandler {
* another template for customisation. * another template for customisation.
* *
* @see Form->setTemplate() * @see Form->setTemplate()
* @var string * @var string|null
*/ */
protected $template; protected $template;
/** /**
* @var callable * @var callable|null
*/ */
protected $buttonClickedFunc; protected $buttonClickedFunc;
/** /**
* @var string * @var string|null
*/ */
protected $message; protected $message;
/** /**
* @var string * @var string|null
*/ */
protected $messageType; protected $messageType;
@ -164,7 +164,7 @@ class Form extends RequestHandler {
protected $security = true; protected $security = true;
/** /**
* @var SecurityToken * @var SecurityToken|null
*/ */
protected $securityToken = null; protected $securityToken = null;
@ -174,7 +174,7 @@ class Form extends RequestHandler {
protected $extraClasses = array(); protected $extraClasses = array();
/** /**
* @var string * @var string|null
*/ */
protected $encType; protected $encType;
@ -196,7 +196,7 @@ class Form extends RequestHandler {
/** /**
* @var bool * @var bool
*/ */
protected $securityTokenAdded; protected $securityTokenAdded = false;
/** /**
* Create a new form, with the given fields an action buttons. * Create a new form, with the given fields an action buttons.
@ -546,9 +546,8 @@ class Form extends RequestHandler {
* form on the page upon validation errors in the form or if * form on the page upon validation errors in the form or if
* they just need to redirect back to the page * they just need to redirect back to the page
* *
* @param bool $bool * @param bool $bool Redirect to form on error?
* @return $this * @return $this
* @internal param Redirect $bool to the form
*/ */
public function setRedirectToFormOnValidationError($bool) { public function setRedirectToFormOnValidationError($bool) {
$this->redirectToFormOnValidationError = $bool; $this->redirectToFormOnValidationError = $bool;