public function render()
    {
        $returnValue = $this->renderLabel();

        $uniqueId = uniqid('calendar_');
        $elementId = tao_helpers_Display::TextCleaner($this->getDescription()) . '_' . $uniqueId;

        if (! isset($this->attributes['size'])) {
            $this->attributes['size'] = 20;
        }

        $returnValue .= "<div class='form-elt-container'><input class='datepicker-input' type='text' name='{$this->name}' id='$elementId' ";
        $returnValue .= $this->renderAttributes();

        if (! empty($this->value)) {
            $timeStamp = is_numeric($this->getRawValue()) ? $this->getRawValue() : $this->getEvaluatedValue();
            $returnValue .= ' value="' . _dh(tao_helpers_Date::displayeDate($timeStamp, tao_helpers_Date::FORMAT_DATEPICKER)) . '"';
        }
        $returnValue .= ' /></div>';

        return (string) $returnValue;
    }
public function render()
    {
        $returnValue = $this->renderLabel();

        $uniqueId = uniqid('calendar_');
        $elementId = tao_helpers_Display::TextCleaner($this->getDescription()) . '_' . $uniqueId;

        if (! isset($this->attributes['size'])) {
            $this->attributes['size'] = 20;
        }

        $returnValue .= "<div class='form-elt-container'><input class='datepicker-input' type='text' name='{$this->name}' id='$elementId' ";
        $returnValue .= $this->renderAttributes();

        if (! empty($this->value)) {
            $timeStamp = is_numeric($this->getRawValue()) ? $this->getRawValue() : $this->getEvaluatedValue();
            $returnValue .= ' value="' . _dh(tao_helpers_Date::displayeDate($timeStamp, tao_helpers_Date::FORMAT_DATEPICKER)) . '"';
        }
        $returnValue .= ' /></div>';

        return (string) $returnValue;
    }
public function render ( ) { $ returnValue = $ this -> renderLabel ( ) ; $ uniqueId = uniqid ( 'calendar_' ) ; $ elementId = tao_helpers_Display :: TextCleaner ( $ this -> getDescription ( ) ) . '_' . $ uniqueId ; if ( ! isset ( $ this -> attributes [ 'size' ] ) ) { $ this -> attributes [ 'size' ] = 20 ; } $ returnValue .= "<div class='form-elt-container'><input class='datepicker-input' type='text' name='{$this->name}' id='$elementId' " ; $ returnValue .= $ this -> renderAttributes ( ) ; if ( ! empty ( $ this -> value ) ) { $ timeStamp = is_numeric ( $ this -> getRawValue ( ) ) ? $ this -> getRawValue ( ) : $ this -> getEvaluatedValue ( ) ; $ returnValue .= ' value="' . _dh ( tao_helpers_Date :: displayeDate ( $ timeStamp , tao_helpers_Date :: FORMAT_DATEPICKER ) ) . '"' ; } $ returnValue .= ' /></div>' ; return ( string ) $ returnValue ; }
Rendering of the XHTML implementation of the Calendar Widget.

@author Bertrand Chevrier, <bertrand@taotesting.com>
@return The XHTML stream of the Calendar Widget.
Rendering of the XHTML implementation of the Calendar Widget .