Prado\Web\UI\WebControls\TCheckBox::getChecked PHP Méthode

getChecked() public méthode

public getChecked ( ) : boolean
Résultat boolean whether the checkbox is checked
    public function getChecked()
    {
        return $this->getViewState('Checked', false);
    }

Usage Example

Exemple #1
0
 /**
  * Sets a value indicating whether the checkbox is to be checked or not.
  * Updates checkbox checked state on the client-side if the
  * {@link setEnableUpdate EnableUpdate} property is set to true.
  * @param boolean whether the checkbox is to be checked or not.
  */
 public function setChecked($value)
 {
     $value = TPropertyValue::ensureBoolean($value);
     if (parent::getChecked() === $value) {
         return;
     }
     parent::setChecked($value);
     if ($this->getActiveControl()->canUpdateClientSide()) {
         $this->getPage()->getCallbackClient()->check($this, $value);
     }
 }