parent
05a764c4b3
commit
aa3d79d40e
@ -0,0 +1,31 @@ |
||||
<?php |
||||
/* For licensing terms, see /license.txt */ |
||||
/** |
||||
* Url element |
||||
* |
||||
* Class Url |
||||
*/ |
||||
class Url extends HTML_QuickForm_text |
||||
{ |
||||
|
||||
/** |
||||
* Constructor of Url class |
||||
* @param type $elementName |
||||
* @param type $elementLabel |
||||
* @param type $attributes |
||||
*/ |
||||
public function Url($elementName = null, $elementLabel = null, $attributes = null) |
||||
{ |
||||
if (!isset($attributes['id'])) { |
||||
$attributes['id'] = $elementName; |
||||
} |
||||
|
||||
$attributes['type'] = 'url'; |
||||
$attributes['class'] = 'form-control'; |
||||
|
||||
parent::__construct($elementName, $elementLabel, $attributes); |
||||
|
||||
$this->setType('url'); |
||||
} |
||||
|
||||
} |
Loading…
Reference in new issue