Contao\FormSubmit::__set PHP Метод

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

Add specific attributes
public __set ( string $strKey, mixed $varValue )
$strKey string The attribute name
$varValue mixed The attribute value
    public function __set($strKey, $varValue)
    {
        switch ($strKey) {
            case 'singleSRC':
                $this->arrConfiguration['singleSRC'] = $varValue;
                break;
            case 'imageSubmit':
                $this->arrConfiguration['imageSubmit'] = $varValue ? true : false;
                break;
            case 'name':
                $this->arrAttributes['name'] = $varValue;
                break;
            case 'label':
                $this->slabel = $varValue;
                break;
            case 'required':
            case 'mandatory':
            case 'minlength':
            case 'maxlength':
                // Ignore
                break;
            default:
                parent::__set($strKey, $varValue);
                break;
        }
    }