Lines Matching refs:TagAttributes
51 class TagAttributes class
75 TagAttributes::TYPE_KEY, // type is the component class
180 TagAttributes::CLASS_KEY,
182 TagAttributes::ID_KEY,
183 TagAttributes::TITLE_KEY,
196 TagAttributes::TYPE_KEY
259 private $mime = TagAttributes::TEXT_HTML_MIME;
309 * @return TagAttributes
311 …butes = [], array $knownTypes = [], bool $allowFirstBooleanAttributesAsType = false): TagAttributes
316 return (new TagAttributes($mergedAttributes, $tag))
321 public static function createEmpty($logicalTag = ""): TagAttributes
324 return new TagAttributes([], $logicalTag);
326 return new TagAttributes();
333 * @return TagAttributes
335 …function createFromCallStackArray(?array $callStackArray, string $logicalTag = null): TagAttributes
358 $tagAttributes = new TagAttributes($callStackArray, $logicalTag);
409 * @param TagAttributes $tagAttributes
410 * @return TagAttributes
412 public static function createFromTagAttributeString(TagAttributes $tagAttributes): TagAttributes
414 …$newTagAttributes = new TagAttributes($tagAttributes->getComponentAttributes(), $tagAttributes->ge…
426 public function addClassName($className): TagAttributes
470 * @return TagAttributes
472 public function addComponentAttributeValue($attributeName, $attributeValue): TagAttributes
475 if (TagAttributes::isEmptyValue($attributeValue)) {
501 public function setComponentAttributeValue($attributeName, $attributeValue): TagAttributes
505 if ($actualValue === null || $actualValue !== TagAttributes::UN_SET) {
526 if (isset($this->componentAttributesCaseInsensitive[TagAttributes::TYPE_KEY])) {
527 … if ($attributeName == $this->componentAttributesCaseInsensitive[TagAttributes::TYPE_KEY]) {
669 TagAttributes::TYPE_KEY,
670 TagAttributes::GENERATED_ID_KEY,
671 TagAttributes::OPEN_TAG
767 * @return TagAttributes
769 public function addOutputAttributeValue($key, $value): TagAttributes
850 $generatedId = $this->getValue(TagAttributes::GENERATED_ID_KEY);
860 $this->addComponentAttributeValue(TagAttributes::GENERATED_ID_KEY, $id);
913 function setStyleDeclaration($property, $value): TagAttributes
952 if ($value === TagAttributes::UN_SET) {
1042 function setLogicalTag($tag): TagAttributes
1143 function setType($type): TagAttributes
1145 $this->setComponentAttributeValue(TagAttributes::TYPE_KEY, $type);
1172 * @return TagAttributes
1175 function removeAttributeIfPresent($string): TagAttributes
1241 function addBooleanOutputAttributeValue(string $key): TagAttributes
1409 public function setDefaultStyleClassShouldBeAdded(bool $bool): TagAttributes
1417 return $this->getValue(TagAttributes::GENERATED_ID_KEY);
1420 public function setKnownTypes(?array $knownTypes): TagAttributes
1426 public function removeType(): TagAttributes
1484 public function setInnerText(string $text): TagAttributes
1502 public function setId(string $id): TagAttributes
1512 $id = $this->getValue(TagAttributes::ID_KEY);