Element type frontend parent class

access public
package kocuj_sitemap

 Methods

Check if this type is configurable in order

checkConfigurableOrder() : boolean
access public

Returns

booleanThis type is configurable in order (true) or not (false)

Check if there are exclude parameters (true) or not (false)

checkExcludeParameters() : boolean
access public

Returns

booleanThere are exclude parameters (true) or not (false)

Check if this type exists

checkExists() : boolean
access public

Returns

booleanThis type exists (true) or not (false)

Check if this type should be displayed for this display type

checkForDisplay(integer $display) : boolean
access public

Parameters

$display

integer

Display type; must be one of the following constants from \KocujSitemapPlugin\Enums\DisplayType: STANDARD (when it is standard display) or DROPDOWN (when it is drop-down list display)

Returns

booleanThis type should be displayed (true) or not (false)

Check if there should be an "ul" list tag

checkListTag() : boolean
access public

Returns

booleanThere should be an "ul" list tag (true) or not (false)

Check section name

checkSectionName() : boolean
access public

Returns

booleanSection name exists (true) or not (false)

Get text after element

getAfterElement(array $element, integer $widget = \KocujSitemapPlugin\Enums\Widget::NO, string $locale = '') : array
access public

Parameters

$element

array

Element

$widget

integer

It is widget or not; must be one of the following constants from \KocujSitemapPlugin\Enums\Widget: NO (when it is not widget) or YES (when it is widget) - default: \KocujSitemapPlugin\Enums\Widget::NO

$locale

string

Language locale - default: empty

Returns

arrayText after element

Get text before element

getBeforeElement(array $element, integer $widget = \KocujSitemapPlugin\Enums\Widget::NO, string $locale = '') : array
access public

Parameters

$element

array

Element

$widget

integer

It is widget or not; must be one of the following constants from \KocujSitemapPlugin\Enums\Widget: NO (when it is not widget) or YES (when it is widget) - default: \KocujSitemapPlugin\Enums\Widget::NO

$locale

string

Language locale - default: empty

Returns

arrayText before element

Get configuration options

getConfigOptions() : array
access public

Returns

arrayConfiguration options

Get exclude parameters suffixes

getExcludeParametersSuffixes() : array
access public

Returns

arrayExclude parameters suffixes

Get hide type parameters description

getHideTypeParameterDescription() : string
access public

Returns

stringHide parameters type description

Get hide type parameters value

getHideTypeParameterValue() : string
access public

Returns

stringHide parameters type value

Get ID to check

getIDToCheck(array $element, string $section) : integer
access public

Parameters

$element

array

Element

$section

string

Section name

Returns

integerID to check

Get section name

getSectionName() : string
access public

Returns

stringSection name

Get sections to check

getSectionsToCheck(array $element) : array
access public

Parameters

$element

array

Element

Returns

arraySections to check

Get type letter

getTypeLetter() : string
access public

Returns

stringType letter

Get types which should be removed when they have no children

getTypesRequiresChildren() : array
access public

Returns

arrayTypes which should be removed when they have no children