14 abstract protected function ctrl($name, $value, $typeCtrl);
18 return $this->_self->properties;
31 $this->_self->properties[$name]=$value;
36 if (array_key_exists($name, $this->_self->properties))
37 return $this->_self->properties[$name];
47 if (\is_array($value)) {
48 foreach ( $value as $v ) {
49 $this->_self->addToProperty($name, $v, $separator);
51 }
else if ($value !==
"" && $this->_self->propertyContains($name, $value) ===
false) {
52 if(isset($this->_self->properties[$name])){
53 $v=$this->_self->properties[$name];
54 if (isset($v) && $v !==
""){
55 $value=$v . $separator . $value;
58 return $this->_self->setProperty($name, $value);
64 $this->_self->properties=array_merge($this->_self->properties,
$properties);
69 $this->_self->properties[$name]=\str_replace($value,
"", $this->_self->properties[$name]);
74 $this->_self->removeOldValues($this->_self->properties[$name], $values);
79 if (is_string($typeCtrl) && @class_exists($typeCtrl,
true))
80 $typeCtrl=$typeCtrl::getConstants();
81 if (\is_array($typeCtrl)) {
82 $this->_self->removeOldValues($this->_self->properties[$name], $typeCtrl);
84 return $this->_self->addToProperty($name, $value);
88 return $this->_self->addToPropertyUnique($name, $value, $typeCtrl);
92 if ($this->_self->ctrl($name, $value, $typeCtrl) ===
true) {
93 return $this->_self->addToProperty($name, $value);
99 if (\array_key_exists($name, $this->_self->properties))
100 unset($this->_self->properties[$name]);
105 $values=$this->_self->getProperty($propertyName);
106 if (isset($values) && $value!=
null) {
107 return JString::contains($values, $value);
113 if ($this->_self->ctrl($name, $value, $typeCtrl) ===
true)
114 return $this->_self->setProperty($name, $value);
119 return $this->_self->_getElementBy(
function(
BaseHtml $element) use ($propertyName,$value){
return $element->
propertyContains($propertyName, $value) ===
true;}, $elements);
BaseHtml for HTML components.
removeOldValues(&$oldValue, $allValues)
getElementByPropertyValue($propertyName, $value, $elements)
_getElementBy($callback, $elements)
removePropertyValue($name, $value)
addProperties($properties)
addToPropertyUnique($name, $value, $typeCtrl)
addToProperty($name, $value, $separator=" ")
propertyContains($propertyName, $value)
setProperties($properties)
ctrl($name, $value, $typeCtrl)
addToPropertyCtrl($name, $value, $typeCtrl)
addToPropertyCtrlCheck($name, $value, $typeCtrl)
setProperty($name, $value)
setPropertyCtrl($name, $value, $typeCtrl)
removePropertyValues($name, $values)