Nette\Forms\IControl::getValue PHP Метод

getValue() публичный Метод

Returns control's value.
public getValue ( ) : mixed
Результат mixed
    function getValue();

Usage Example

 /**
  * @param \Nette\Forms\IControl
  * @return bool
  */
 public function isLicenseValid(IControl $control)
 {
     $licenses = $control->getValue();
     if (is_string($licenses)) {
         $licenses = array_map('trim', explode(',', $licenses));
     }
     foreach ($licenses as $license) {
         if (!$this->validators->isLicenseValid($license)) {
             return FALSE;
         }
     }
     return TRUE;
 }
All Usage Examples Of Nette\Forms\IControl::getValue