Lines Matching refs:this

6  * COPYING  file in the root directory of this source tree.
140 * If an attribute has this value,
142 * Child element can unset attribute this way
242 * It's not an HTML tag (a div can have a flex display or a block and they don't carry this information)
275 * Use the static create function to instantiate this object
278 * * this is not always the component name / syntax name (for instance the {@link \syntax_plugin_combo_codemarkdown} is another syntax
284 $this->logicalTag = $tag;
285 $this->componentAttributesCaseInsensitive = new ArrayCaseInsensitive($componentAttributes);
293 unset($this->componentAttributesCaseInsensitive[$key]);
297 unset($this->componentAttributesCaseInsensitive[$key]);
332 * @param string|null $logicalTag - the logical tag for which this attribute will apply
429 $this->addComponentAttributeValue(self::CLASS_KEY, $className);
430 return $this;
439 $value = $this->getValue(self::CLASS_KEY, $default);
453 if (sizeof($this->styleDeclaration) === 0) {
456 return Html::array2InlineStyle($this->styleDeclaration);
462 return $this->styleDeclaration;
481 if ($this->hasComponentAttribute($attLower)) {
482 $actual = $this->componentAttributesCaseInsensitive[$attLower];
489 $this->componentAttributesCaseInsensitive[$attLower] = Html::mergeClassNames($attributeValue, $actual);
494 $this->componentAttributesCaseInsensitive[$attLower] = $attributeValue;
497 return $this;
504 $actualValue = $this->getValue($attributeName);
506 $this->componentAttributesCaseInsensitive[$attLower] = $attributeValue;
508 return $this;
514 $this->addComponentAttributeValue($attributeName, $attributeValue);
520 $isset = isset($this->componentAttributesCaseInsensitive[$attributeName]);
521 if ($isset === false && $this->knownTypes === null) {
524 * if this is a boolean value and the first value, it may be stored in the type
526 if (isset($this->componentAttributesCaseInsensitive[TagAttributes::TYPE_KEY])) {
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.");
541 * can still be in this format
545 if ($this->componentToHtmlAttributeProcessingWasDone) {
546 LogUtility::msg("This tag attribute ($this) was already finalized. You cannot finalized it twice", LogUtility::LVL_MSG_ERROR);
547 return $this->finalHtmlArray;
550 $this->componentToHtmlAttributeProcessingWasDone = true;
555 Dimension::processWidthAndHeight($this);
560 Hover::processOnHover($this);
561 Animation::processOnView($this);
567 Position::processStickiness($this);
568 Position::processPosition($this);
569 Display::processDisplay($this);
570 Vertical::processVertical($this);
571 Horizontal::processHorizontal($this);
578 FloatAttribute::processFloat($this);
579 Align::processAlignAttributes($this);
580 Spacing::processSpacingAttributes($this);
581 Hero::processHero($this);
582 Opacity::processOpacityAttribute($this);
583 BackgroundAttribute::processBackgroundAttributes($this);
584 Shadow::process($this);
589 LineSpacing::processLineSpacingAttributes($this);
590 TextAlign::processTextAlign($this);
591 Boldness::processBoldnessAttribute($this);
592 FontSize::processFontSizeAttribute($this);
593 TextColor::processTextColorAttribute($this);
594 Underline::processUnderlineAttribute($this);
599 PluginUtility::processStyle($this);
600 Toggle::processToggle($this);
606 Skin::processSkinAttribute($this);
611 Lang::processLangAttribute($this);
616 if ($this->hasComponentAttribute(self::TRANSFORM)) {
617 $transformValue = $this->getValueAndRemove(self::TRANSFORM);
618 $this->addStyleDeclarationIfNotSet("transform", $transformValue);
625 Tooltip::processTooltip($this);
630 StyleAttribute::addStylingClass($this);
637 $this->addOutputAttributeValueIfNotEmpty("style", $this->getStyle());
645 $tempHtmlArray = $this->outputAttributes;
650 $originalArray = $this->componentAttributesCaseInsensitive->getOriginalArray();
680 if (isset($this->logicalTag)) {
681 $message = "$message for the component ({$this->logicalTag}).";
751 $this->finalHtmlArray = $sortedArray;
756 $this->finalHtmlArray = $this->encodeToHtmlValue($this->finalHtmlArray);
758 return $this->finalHtmlArray;
773 LogUtility::error("The value of the output attribute is blank for the key ($key) - Tag ($this->logicalTag). Use the empty / boolean function if the value can be empty");
776 $actualValue = $this->outputAttributes[$key] ?? null;
778 $this->outputAttributes[$key] = $value;
779 return $this;
786 $this->outputAttributes[$key] = "$value $actualValue";
787 return $this;
795 $this->addOutputAttributeValue($key, $value);
807 if ($this->hasComponentAttribute($attributeName)) {
808 return $this->componentAttributesCaseInsensitive[$attributeName];
827 if ($this->hasComponentAttribute($attributeName)) {
828 $value = $this->getValue($attributeName);
835 unset($this->componentAttributesCaseInsensitive[$attributeName]);
850 $generatedId = $this->getValue(TagAttributes::GENERATED_ID_KEY);
853 $componentName = $this->logicalTag;
860 $this->addComponentAttributeValue(TagAttributes::GENERATED_ID_KEY, $id);
865 $originalArray = $this->componentAttributesCaseInsensitive->getOriginalArray();
880 foreach ($this->outputAttributes as $key => $value) {
884 $array["style"] = $this->getStyle();
889 if (isset($this->innerText)) {
890 $array[self::DOKUWIKI_TEXT_NODE_ATTRIBUTE] = $this->innerText;
900 if ($this->hasComponentAttribute($lowerAttribute)) {
901 $value = $this->getValue($lowerAttribute);
909 ArrayUtility::addIfNotSet($this->styleDeclaration, $property, $value);
915 $this->styleDeclaration[$property] = $value;
916 return $this;
923 return isset($this->styleDeclaration[$styleDeclaration]);
928 $styleValue = $this->styleDeclaration[$styleDeclaration];
929 unset($this->styleDeclaration[$styleDeclaration]);
940 $htmlArray = $this->toHtmlArray();
981 return $this->toCallStackArray();
987 if ($this->hasComponentAttribute($attributeName)) {
988 unset($this->componentAttributesCaseInsensitive[$attributeName]);
998 $attributeString = $this->toHTMLAttributeString();
1005 if (!$this->getValue(self::OPEN_TAG, false)) {
1012 if (!empty($this->htmlAfterEnterTag)) {
1013 $enterTag .= DOKU_LF . $this->htmlAfterEnterTag;
1028 $attributeString = $this->toHTMLAttributeString();
1038 return $this->logicalTag;
1044 $this->logicalTag = $tag;
1045 return $this;
1055 if (isset($this->componentAttributesCaseInsensitive[$lowerAtt])) {
1056 $value = $this->componentAttributesCaseInsensitive[$lowerAtt];
1057 unset($this->componentAttributesCaseInsensitive[$lowerAtt]);
1061 * Edge case, this is the first boolean attribute
1064 if (!$this->getType() == $lowerAtt) {
1065 LogUtility::msg("Internal Error: The component attribute ($attribute) is not present. Use the ifPresent function, if you don't want this message");
1080 $this->htmlAfterEnterTag = $html . $this->htmlAfterEnterTag;
1086 * this class has become the context class
1095 $this->mime = $mime;
1104 return $this->mime;
1110 return $this->getValue(self::TYPE_KEY);
1120 $value = $this->getConditionalValueAndRemove($attributeName);
1135 $trim = $this->getValues($attributeName, $default);
1136 $this->removeAttributeIfPresent($attributeName);
1145 $this->setComponentAttributeValue(TagAttributes::TYPE_KEY, $type);
1146 return $this;
1158 if ($this->hasComponentAttribute($key)) {
1161 $this->addComponentAttributeValue($key, $value);
1164 $this->setComponentAttributeValue($key, $value);
1177 $this->removeComponentAttributeIfPresent($string);
1178 $this->removeOutputAttributeIfPresent($string);
1179 return $this;
1186 if (isset($this->outputAttributes[$lowerAtt])) {
1187 unset($this->outputAttributes[$lowerAtt]);
1194 $value = $this->getValue($attribute, $default);
1195 $this->removeAttributeIfPresent($attribute);
1204 $logicalTag = $this->getLogicalTag();
1206 $id = $this->logicalTag . $id;
1208 $this->setComponentAttributeValue("id", $id);
1224 foreach ($this->getComponentAttributes() as $key => $value) {
1244 $this->outputAttributes[$key] = null;
1245 return $this;
1252 $this->componentAttributesCaseInsensitive[$attribute] = "";
1263 $value = $this->getBooleanValue($attribute, $default);
1264 $this->removeAttributeIfPresent($attribute);
1271 $value = $this->getValue($attribute);
1280 $hasAttribute = $this->hasComponentAttribute($attribute);
1284 return $this->hasHtmlAttribute($attribute);
1290 return isset($this->outputAttributes[$attribute]);
1298 $value = $this->outputAttributes[$attribute] ?? null;
1392 $value = $this->getValue($WIDTH_KEY, $default);
1401 return strpos($this->getClass(), $string) !== false;
1406 return $this->defaultStyleClassShouldBeAdded;
1411 $this->defaultStyleClassShouldBeAdded = $bool;
1412 return $this;
1417 return $this->getValue(TagAttributes::GENERATED_ID_KEY);
1422 $this->knownTypes = $knownTypes;
1423 return $this;
1428 $this->removeAttributeIfPresent(self::TYPE_KEY);
1429 return $this;
1443 $value = $this->getValue($attributeName);
1457 $value = $this->getComponentAttributeValue($attribute, $default);
1458 $this->removeComponentAttributeIfPresent($attribute);
1465 foreach ($this->componentAttributesCaseInsensitive as $key => $value) {
1473 $hasAttribute = $this->hasComponentAttribute($key);
1475 $this->removeComponentAttribute($key);
1482 * @return $this
1486 $this->innerText = $text;
1487 return $this;
1495 if (!isset($this->innerText)) {
1498 return $this->innerText;
1504 return $this->setComponentAttributeValue("id", $id);
1512 $id = $this->getValue(TagAttributes::ID_KEY);