Lines Matching refs:attributeName

468      * @param $attributeName
472 public function addComponentAttributeValue($attributeName, $attributeValue): TagAttributes
476 LogUtility::msg("The value of the attribute ($attributeName) is empty. Use the nonEmpty function instead if it's the wanted behavior", LogUtility::LVL_MSG_WARNING, "support");
479 $attLower = strtolower($attributeName);
488 if (in_array($attributeName, self::MULTIPLE_VALUES_ATTRIBUTES)) {
501 public function setComponentAttributeValue($attributeName, $attributeValue): TagAttributes
503 $attLower = strtolower($attributeName);
504 $actualValue = $this->getValue($attributeName);
511 public function addComponentAttributeValueIfNotEmpty($attributeName, $attributeValue)
514 $this->addComponentAttributeValue($attributeName, $attributeValue);
518 public function hasComponentAttribute($attributeName): bool
520 $isset = isset($this->componentAttributesCaseInsensitive[$attributeName]);
527 if ($attributeName == $this->componentAttributesCaseInsensitive[TagAttributes::TYPE_KEY]) {
528 LogUtility::warning("Internal Error: The tag ({$this->getLogicalTag()}) has a boolean attribute ($attributeName) defined as a type. The possible types should be defined for this tag as it's deprecated.");
800 * @param $attributeName
804 public function getValue($attributeName, $default = null)
806 $attributeName = strtolower($attributeName);
807 if ($this->hasComponentAttribute($attributeName)) {
808 return $this->componentAttributesCaseInsensitive[$attributeName];
817 * @param $attributeName
823 public function getValueAndRemove($attributeName, $default = null)
825 $attributeName = strtolower($attributeName);
827 if ($this->hasComponentAttribute($attributeName)) {
828 $value = $this->getValue($attributeName);
830 if (!in_array($attributeName, self::PROTECTED_ATTRIBUTES)) {
835 unset($this->componentAttributesCaseInsensitive[$attributeName]);
896 function getComponentAttributeValue($attributeName, $default = null)
898 $lowerAttribute = strtolower($attributeName);
985 function removeComponentAttributeIfPresent($attributeName)
987 if ($this->hasComponentAttribute($attributeName)) {
988 unset($this->componentAttributesCaseInsensitive[$attributeName]);
1114 * @param $attributeName
1118 function getConditionalValueAndRemove($attributeName)
1120 $value = $this->getConditionalValueAndRemove($attributeName);
1126 * @param $attributeName
1132 function getValuesAndRemove($attributeName, $default = null): array
1135 $trim = $this->getValues($attributeName, $default);
1136 $this->removeAttributeIfPresent($attributeName);
1433 * @param $attributeName
1438 public function getValues($attributeName, ?array $default = null): ?array
1443 $value = $this->getValue($attributeName);
1448 throw new ExceptionBadArgument("The attribute ($attributeName) does not contain a string, we can't return multiple values");