<?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');
    }

}
