29 $result=json_encode(
$params, JSON_UNESCAPED_SLASHES);
30 $result=str_ireplace(
"%quote%",
"\"", $result);
36 $this->params [$key]=$value;
42 if (array_key_exists($key, $this->params))
43 $value=$this->params [$key];
55 $js->addToCompile($script);
59 if (\is_array($typeCtrl)) {
60 if (array_search($value, $typeCtrl)===
false)
61 throw new \Exception(
"La valeur passée a propriété `".$key.
"` ne fait pas partie des valeurs possibles : {".implode(
",", $typeCtrl).
"}");
63 if (!$typeCtrl($value)) {
64 throw new \Exception(
"La fonction ".$typeCtrl.
" a retourné faux pour l'affectation de la propriété ".$key);
73 $method =
"set" . ucfirst($k);
74 if (method_exists($this, $method))
78 trigger_error(
"`{$k}` doesn't exists!", E_USER_NOTICE);
96 return $this->
setParam(
"debug", $value);
100 return $this->
setParam(
"verbose", $value);
setParamCtrl($key, $value, $typeCtrl)
compile(JsUtils $js=NULL)
Base component for JQuery UI visuals components.
__construct(JsUtils $js=NULL)