<?php

/**
 * Goweb_Form_Element_Separator
 *
 * @category    Goweb
 * @version     5.1.3
 * @category    Goweb
 * @package     Goweb_View
 * @subpackage  Helper
 * @author      I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright   2010 (c) Goweb (http://www.goweb.pt)
 */

/**
 * Goweb_Form_Element
 */
require_once 'Zend/Form/Element.php';

/**
 * Classe para representar um elemento do tipo Text
 *
 * @version     5.1.3
 * @category    Goweb
 * @package     Goweb_View
 * @subpackage  Helper
 * @author      I&D <dev@goweb.pt>, Pedro Pinto <ppinto@goweb.pt>
 * @copyright   2010 (c) Goweb (http://www.goweb.pt)
 */
class Goweb_Form_Element_Separator extends Zend_Form_Element {

    /**
     * Constroi o input em XHTML.
     */
    public function render() {
        $output = '<hr class="separator" ';
            // XHTML or HTML end tag?
        $endTag = ' />';
        if (($this->view instanceof Zend_View_Abstract) && !$this->view->doctype()->isXhtml()) {
            $endTag= '>';
        }
        return $output . $endTag;
    }
}
