Lines Matching defs:TagAttributes

45  *   * output the final HTML attributes at the end of the process with the function {@link TagAttributes::toHTMLAttributeString()}
51 class TagAttributes
75 TagAttributes::TYPE_KEY, // type is the component class
132 * permit to not close the tag in {@link TagAttributes::toHtmlEnterTag()}
141 * it will not be added to the output (ie {@link TagAttributes::toHtmlEnterTag()})
180 TagAttributes::CLASS_KEY,
182 TagAttributes::ID_KEY,
183 TagAttributes::TITLE_KEY,
193 * TODO: This is because the request object and the response object are the same. We should add the request attribute in the {@link \TagAttributes}
196 TagAttributes::TYPE_KEY
208 * to {@link TagAttributes::generateAndSetId()}
231 * They are created by the {@link TagAttributes::toHtmlArray()} processing mainly
259 private $mime = TagAttributes::TEXT_HTML_MIME;
309 * @return TagAttributes
311 public static function createFromTagMatch($match, array $defaultAttributes = [], 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 public static function createFromCallStackArray(?array $callStackArray, string $logicalTag = null): TagAttributes
345 * Style is not allowed in a TagAttributes
358 $tagAttributes = new TagAttributes($callStackArray, $logicalTag);
407 * calling the final method {@link TagAttributes::toHtmlArray()}
408 * or {@link TagAttributes::toHtmlEnterTag()}
409 * @param TagAttributes $tagAttributes
410 * @return TagAttributes
412 public static function createFromTagAttributeString(TagAttributes $tagAttributes): TagAttributes
414 $newTagAttributes = new TagAttributes($tagAttributes->getComponentAttributes(), $tagAttributes->getLogicalTag());
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
742 * By default, {@link TagAttributes::addOutputAttributeValue()}
744 * {@link TagAttributes::addOutputAttributeValue()}
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
1384 return "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);