Skip to content

Commit 91f244e

Browse files
committed
class alias
1 parent 6b82cff commit 91f244e

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/Forms/Controls/Checkbox.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
namespace Nette\Forms\Controls;
99

1010
use Nette;
11+
use Nette\Utils\Html;
1112

1213

1314
/**
1415
* Check box control. Allows the user to select a true or false condition.
1516
*/
1617
class Checkbox extends BaseControl
1718
{
18-
/** @var Nette\Utils\Html wrapper element template */
19+
/** @var Html wrapper element template */
1920
private $wrapper;
2021

2122

@@ -26,7 +27,7 @@ public function __construct($label = NULL)
2627
{
2728
parent::__construct($label);
2829
$this->control->type = 'checkbox';
29-
$this->wrapper = Nette\Utils\Html::el();
30+
$this->wrapper = Html::el();
3031
$this->setOption('type', 'checkbox');
3132
}
3233

@@ -59,7 +60,7 @@ public function isFilled()
5960

6061
/**
6162
* Generates control's HTML element.
62-
* @return Nette\Utils\Html
63+
* @return Html
6364
*/
6465
public function getControl()
6566
{
@@ -77,7 +78,7 @@ public function getLabel($caption = NULL)
7778

7879

7980
/**
80-
* @return Nette\Utils\Html
81+
* @return Html
8182
*/
8283
public function getControlPart()
8384
{
@@ -86,7 +87,7 @@ public function getControlPart()
8687

8788

8889
/**
89-
* @return Nette\Utils\Html
90+
* @return Html
9091
*/
9192
public function getLabelPart()
9293
{
@@ -96,7 +97,7 @@ public function getLabelPart()
9697

9798
/**
9899
* Returns wrapper HTML element template.
99-
* @return Nette\Utils\Html
100+
* @return Html
100101
*/
101102
public function getSeparatorPrototype()
102103
{

src/Forms/Form.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,15 @@
88
namespace Nette\Forms;
99

1010
use Nette;
11+
use Nette\Utils\Html;
1112

1213

1314
/**
1415
* Creates, validates and renders HTML forms.
1516
*
1617
* @property-read array $errors
1718
* @property-read array $ownErrors
18-
* @property-read Nette\Utils\Html $elementPrototype
19+
* @property-read Html $elementPrototype
1920
* @property-read IFormRenderer $renderer
2021
* @property string $action
2122
* @property string $method
@@ -95,7 +96,7 @@ class Form extends Container implements Nette\Utils\IHtmlString
9596
/** @var array */
9697
private $httpData;
9798

98-
/** @var Nette\Utils\Html <form> element */
99+
/** @var Html <form> element */
99100
private $element;
100101

101102
/** @var IFormRenderer */
@@ -566,12 +567,12 @@ public function getOwnErrors()
566567

567568
/**
568569
* Returns form's HTML element template.
569-
* @return Nette\Utils\Html
570+
* @return Html
570571
*/
571572
public function getElementPrototype()
572573
{
573574
if (!$this->element) {
574-
$this->element = Nette\Utils\Html::el('form');
575+
$this->element = Html::el('form');
575576
$this->element->action = ''; // RFC 1808 -> empty uri means 'this'
576577
$this->element->method = self::POST;
577578
}

0 commit comments

Comments
 (0)