/** * Add specific attributes * * @param string $strKey The attribute key * @param mixed $varValue The attribute value */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'min': case 'max': case 'step': case 'placeholder': $this->arrAttributes[$strKey] = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mSize': if ($this->multiple) { $this->arrAttributes['size'] = $varValue; } break; case 'options': $this->arrOptions = deserialize($varValue); break; case 'multiple': if (strlen($varValue)) { $this->arrAttributes[$strKey] = 'multiple'; } break; case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; case 'rgxp': break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mSize': if ($this->multiple) { $this->arrAttributes['size'] = $varValue; } break; case 'efgLookupOptions': $this->import('Formdata'); $this->arrConfiguration['efgLookupOptions'] = $varValue; $arrOptions = $this->Formdata->prepareWidgetOptions($this->arrConfiguration); $this->arrOptions = $arrOptions; break; case 'multiple': if (strlen($varValue)) { $this->arrAttributes[$strKey] = 'multiple'; } break; case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; case 'rgxp': break; default: parent::__set($strKey, $varValue); break; } }
public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': $this->arrAttributes[$strKey] = $varValue > 0 ? $varValue : ''; break; case 'mandatory': if (VERSION == 2.9 || VERSION == 2.1) { $this->arrConfiguration['mandatory'] = $varValue ? true : false; } else { if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); } break; case 'placeholder': $this->arrAttributes['placeholder'] = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'rows': $this->intRows = $varValue; break; case 'cols': $this->intCols = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'placeholder': $this->arrAttributes['placeholder'] = $varValue; break; case 'options': $this->arrUnits = \StringUtil::deserialize($varValue); break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey The attribute name * @param mixed $varValue 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; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'size': if ($this->multiple) { $this->arrAttributes['size'] = $varValue; } break; case 'multiple': if ($varValue) { $this->arrAttributes['multiple'] = 'multiple'; } break; case 'options': $this->arrOptions = \StringUtil::deserialize($varValue); break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'placeholder': $this->arrAttributes['placeholder'] = $varValue; break; case 'size': $arrSize = deserialize($varValue); $this->intRows = $arrSize[0]; $this->intCols = $arrSize[1]; break; case 'rows': $this->intRows = $varValue; break; case 'cols': $this->intCols = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': // Do not add as attribute (see #3094) $this->arrConfiguration['maxlength'] = $varValue; break; case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'fSize': if ($varValue > 0) { $this->arrAttributes['size'] = $varValue; } break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey The attribute name * @param mixed $varValue The attribute value */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } parent::__set($strKey, $varValue); break; case 'mSize': if ($this->multiple) { $this->arrAttributes['size'] = $varValue; } break; case 'multiple': if ($varValue != '') { $this->arrAttributes['multiple'] = 'multiple'; } break; case 'options': $this->arrOptions = deserialize($varValue); break; case 'rgxp': case 'minlength': case 'maxlength': // Ignore break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string * @param mixed */ public function __set($key, $value) { switch ($key) { default: parent::__set($key, $value); break; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'options': $this->arrOptions = deserialize($varValue); break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'required': case 'mandatory': // Is set by default break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'value': $this->varValue = $varValue ? true : false; break; case 'options': break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; default: parent::__set($strKey, $varValue); break; } }
/** * Add the required attribute if mandatory * * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mandatory': if ($varValue) { $this->arrAttributes['required'] = 'required'; } else { unset($this->arrAttributes['required']); } // DO NOT BREAK HERE } parent::__set($strKey, $varValue); }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; case 'maxlength': $this->arrAttributes[$strKey] = $varValue > 0 ? $varValue : ''; break; default: parent::__set($strKey, $varValue); break; } }
/** * Set an object property * * @param string $strKey The property name * @param mixed $varValue The property value */ public function __set($strKey, $varValue) { switch ($strKey) { case 'metaFields': if (!array_is_assoc($varValue)) { $varValue = array_combine($varValue, array_fill(0, count($varValue), '')); } $this->arrConfiguration['metaFields'] = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': // Not allowed here (see #3094) break; case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'rows': $this->intRows = $varValue; break; case 'cols': $this->intCols = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'required': case 'mandatory': // Is set by default break; case 'placeholder': $this->arrAttributes['placeholder'] = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey The attribute name * @param mixed $varValue The attribute value */ public function __set($strKey, $varValue) { switch ($strKey) { case 'options': $this->arrOptions = \StringUtil::deserialize($varValue); break; case 'rgxp': case 'minlength': case 'maxlength': // Ignore break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'cols': if ($varValue > 0) { $this->intCols = $varValue; } break; case 'options': $this->arrOptions = deserialize($varValue); break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'options': $this->arrOptions = deserialize($varValue); break; case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; case 'rgxp': break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * * @param string $strKey * @param mixed $varValue */ public function __set($strKey, $varValue) { switch ($strKey) { case 'maxlength': if ($varValue > 0) { $this->arrAttributes['maxlength'] = $varValue; } break; case 'options': $this->arrOptions = \StringUtil::deserialize($varValue); break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ 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; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific settings */ public function __set($strKey, $varValue) { switch ($strKey) { case 'imageWidth': $this->imageWidth = $varValue; break; case 'imageHeight': $this->imageHeight = $varValue; break; case 'imageMode': $this->imageMode = $varValue; break; default: parent::__set($strKey, $varValue); break; } }
/** * Add specific attributes * @param string * @param mixed */ public function __set($strKey, $varValue) { switch ($strKey) { case 'efgLookupOptions': $this->import('Formdata'); $this->arrConfiguration['efgLookupOptions'] = $varValue; $arrOptions = $this->Formdata->prepareWidgetOptions($this->arrConfiguration); $this->arrOptions = $arrOptions; break; case 'mandatory': $this->arrConfiguration['mandatory'] = $varValue ? true : false; break; case 'rgxp': break; default: parent::__set($strKey, $varValue); break; } }