[ Index ]

PHP Cross Reference of phpBB-3.3.14-deutsch

title

Body

[close]

/vendor/s9e/text-formatter/src/Plugins/HTMLElements/ -> Configurator.php (summary)

(no description)

File Size: 370 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Configurator:: (13 methods):
  aliasAttribute()
  aliasElement()
  allowElement()
  allowUnsafeElement()
  allowElementWithSafety()
  allowAttribute()
  allowUnsafeAttribute()
  allowAttributeWithSafety()
  normalizeElementName()
  normalizeAttributeName()
  rebuildTemplate()
  asConfig()
  getJSHints()


Class: Configurator  - X-Ref


aliasAttribute($elName, $attrName, $alias)   X-Ref
Alias the HTML attribute of given HTML element to a given attribute name

NOTE: will *not* create the target attribute

param: string $elName   Name of the HTML element
param: string $attrName Name of the HTML attribute
param: string $alias    Alias
return: void

aliasElement($elName, $tagName)   X-Ref
Alias an HTML element to a given tag name

NOTE: will *not* create the target tag

param: string $elName  Name of the HTML element
param: string $tagName Name of the tag
return: void

allowElement($elName)   X-Ref
Allow an HTML element to be used

param: string $elName Name of the element
return: Tag            Tag that represents this element

allowUnsafeElement($elName)   X-Ref
Allow an unsafe HTML element to be used

param: string $elName Name of the element
return: Tag            Tag that represents this element

allowElementWithSafety($elName, $allowUnsafe)   X-Ref
Allow a (potentially unsafe) HTML element to be used

param: string $elName      Name of the element
param: bool   $allowUnsafe Whether to allow unsafe elements
return: Tag                 Tag that represents this element

allowAttribute($elName, $attrName)   X-Ref
Allow an attribute to be used in an HTML element

param: string $elName   Name of the element
param: string $attrName Name of the attribute
return: \s9e\Configurator\Items\Attribute

allowUnsafeAttribute($elName, $attrName)   X-Ref
Allow an unsafe attribute to be used in an HTML element

param: string $elName   Name of the element
param: string $attrName Name of the attribute
return: \s9e\Configurator\Items\Attribute

allowAttributeWithSafety($elName, $attrName, $allowUnsafe)   X-Ref
Allow a (potentially unsafe) attribute to be used in an HTML element

param: string $elName   Name of the element
param: string $attrName Name of the attribute
param: bool   $allowUnsafe
return: \s9e\Configurator\Items\Attribute

normalizeElementName($elName)   X-Ref
Validate and normalize an element name

Accepts any name that would be valid, regardless of whether this element exists in HTML5.
Might be slightly off as the HTML5 specs don't seem to require it to start with a letter but
our implementation does.

param: string $elName Original element name
return: string         Normalized element name, in lowercase

normalizeAttributeName($attrName)   X-Ref
Validate and normalize an attribute name

More restrictive than the specs but allows all HTML5 attributes and more.

param: string $attrName Original attribute name
return: string           Normalized attribute name, in lowercase

rebuildTemplate(Tag $tag, $elName, $allowUnsafe)   X-Ref
Rebuild a tag's template

param: Tag    $tag         Source tag
param: string $elName      Name of the HTML element created by the template
param: bool   $allowUnsafe Whether to allow unsafe markup
return: void

asConfig()   X-Ref
Generate this plugin's config

return: array|null

getJSHints()   X-Ref
{@inheritdoc}




Generated: Mon Nov 25 19:05:08 2024 Cross-referenced by PHPXref 0.7.1