Lines Matching defs:attributes

27     const ATTRIBUTES = "attributes";
167 * @param $attributes - combo attributes
171 public static function array2HTMLAttributesAsString($attributes)
174 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
181 * Parse the attributes part of a match
269 $attributes = array();
293 $attributes[TagAttributes::TYPE_KEY] = $nextArgument;
311 $attributes[$keyThirdArgument] = $nextArgument;
322 * Parse the remaining attributes
329 $attributes = array_merge($attributes, $parsedAttributes);;
331 return $attributes;
427 * This method will takes attributes
430 * @param TagAttributes $attributes
432 public static function processStyle(&$attributes)
436 if ($attributes->hasComponentAttribute($styleAttributeName)) {
437 $properties = explode(";", $attributes->getValueAndRemove($styleAttributeName));
441 $attributes->addStyleDeclarationIfNotSet($key, $value);
453 if ($attributes->hasComponentAttribute(ColorRgb::BORDER_COLOR)) {
454 $colorValue = $attributes->getValueAndRemove(ColorRgb::BORDER_COLOR);
455 $attributes->addStyleDeclarationIfNotSet(ColorRgb::BORDER_COLOR, ColorRgb::createFromString($colorValue)->toCssValue());
456 self::checkDefaultBorderColorAttributes($attributes);
567 * @param array $inlineAttributes - the component inline attributes
568 * @param array $defaultAttributes - the default configuration attributes
680 * @param array $attributes
683 static function addClass2Attributes($classValue, array &$attributes)
685 self::addAttributeValue("class", $classValue, $attributes);
689 * Add a style property to the attributes
692 * @param array $attributes
696 static function addStyleProperty($property, $value, array &$attributes)
698 if (isset($attributes["style"])) {
699 $attributes["style"] .= ";$property:$value";
701 $attributes["style"] = "$property:$value";
707 * Add default border attributes
799 static function addAttributeValue($attribute, $value, array &$attributes)
801 if (array_key_exists($attribute, $attributes) && $attributes[$attribute] !== "") {
802 $attributes[$attribute] .= " {$value}";
804 $attributes[$attribute] = "{$value}";
833 $attributes = $data[PluginUtility::ATTRIBUTES] ?? [];
834 $tagAttributes = TagAttributes::createFromCallStackArray($attributes);
893 * and the attributes easily
899 * It will remain the tagname and its attributes