PHP Class Contao\PageSelector

Provide methods to handle input field "page tree".
Inheritance: extends Widget
Exibir arquivo Open project: contao/core-bundle

Protected Properties

Property Type Description
$arrNodes array Path nodes
$blnSubmitInput boolean Submit user input
$strTemplate string Template

Public Methods

Method Description
__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

Protected Methods

Method Description
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

Method Details

__construct() public method

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

generate() public method

Generate the widget and return it as string
public generate ( ) : string
return string

generateAjax() public method

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
return string

getPathNodes() protected method

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

renderPagetree() protected method

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
return string

Property Details

$arrNodes protected_oe property

Path nodes
protected array $arrNodes
return array

$blnSubmitInput protected_oe property

Submit user input
protected bool $blnSubmitInput
return boolean

$strTemplate protected_oe property

Template
protected string $strTemplate
return string