Prado\Web\UI\WebControls\TDatePicker::loadPostData PHP Method

loadPostData() public method

This method is primarly used by framework developers.
public loadPostData ( $key, $values ) : boolean
return boolean whether the data of the component has been changed
    public function loadPostData($key, $values)
    {
        if ($this->getInputMode() == TDatePickerInputMode::TextBox) {
            return parent::loadPostData($key, $values);
        }
        $value = $this->getDateFromPostData($key, $values);
        if (!$this->getReadOnly() && $this->getText() !== $value) {
            $this->setText($value);
            return true;
        } else {
            return false;
        }
    }