PHP Класс Contao\PageSelector

Provide methods to handle input field "page tree".
Наследование: extends Widget
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$arrNodes array Path nodes
$blnSubmitInput boolean Submit user input
$strTemplate string Template

Открытые методы

Метод Описание
__construct ( array $arrAttributes = null ) Load the database object
generate ( ) : string Generate the widget and return it as string
generateAjax ( integer $id, string $strField, integer $level ) : string Generate a particular subpart of the page tree and return it as HTML string

Защищенные методы

Метод Описание
getPathNodes ( ) Get the IDs of all parent pages of the selected pages, so they are expanded automatically
renderPagetree ( integer $id, integer $intMargin, boolean $protectedPage = false, boolean $blnNoRecursion = false, array $arrFound = [] ) : string Recursively render the pagetree

Описание методов

__construct() публичный Метод

Load the database object
public __construct ( array $arrAttributes = null )
$arrAttributes array

generate() публичный Метод

Generate the widget and return it as string
public generate ( ) : string
Результат string

generateAjax() публичный Метод

Generate a particular subpart of the page tree and return it as HTML string
public generateAjax ( integer $id, string $strField, integer $level ) : string
$id integer
$strField string
$level integer
Результат string

getPathNodes() защищенный Метод

Get the IDs of all parent pages of the selected pages, so they are expanded automatically
protected getPathNodes ( )

renderPagetree() защищенный Метод

Recursively render the pagetree
protected renderPagetree ( integer $id, integer $intMargin, boolean $protectedPage = false, boolean $blnNoRecursion = false, array $arrFound = [] ) : string
$id integer
$intMargin integer
$protectedPage boolean
$blnNoRecursion boolean
$arrFound array
Результат string

Описание свойств

$arrNodes защищенное свойство

Path nodes
protected array $arrNodes
Результат array

$blnSubmitInput защищенное свойство

Submit user input
protected bool $blnSubmitInput
Результат boolean

$strTemplate защищенное свойство

Template
protected string $strTemplate
Результат string