LEPTON CMS 7.0.0
feel free to keep it strictly simple...
Loading...
Searching...
No Matches
function.page_tree.php File Reference

Go to the source code of this file.

Functions

 page_tree (int $root_id=0, array &$page_storage=[], array $fields=['page_id', 'page_title', 'menu_title', 'parent', 'position', 'visibility'])
 
 LEPTON_CORE_make_list (int $aNum, array &$aRefArray)
 

Variables

if(!defined("SEC_FILE")) if(defined('LEPTON_PATH')) else
 
 $root = $oneback
 
 $level = 1
 

Function Documentation

◆ LEPTON_CORE_make_list()

LEPTON_CORE_make_list ( int  $aNum,
array &  $aRefArray 
)

Internal Sub-function for "page_tree" to build the page-tree via recursive calls.

Parameters
int$aNumRoot-Id
array$aRefArrayResult-Storage. Call by reference!

Definition at line 92 of file function.page_tree.php.

◆ page_tree()

page_tree ( int  $root_id = 0,
array &  $page_storage = [],
array  $fields = ['page_id', 'page_title', 'menu_title', 'parent','position','visibility'] 
)

Generates a page-tree (array) by given parameters (see below).

Parameters
int$root_idAny root-(page) id. Default = 0.
array$page_storageStorage-Array for the results. Pass by reference!
array$fieldsA linear list of field-names to collect. As default 'page_id', 'page_title', 'menu_title', 'parent','position','visibility' are collected in the result-array. Keep in mind that also 'subpages' is generated!
Returns
void As the storage is called by reference.

Definition at line 52 of file function.page_tree.php.

Variable Documentation

◆ $level

$level = 1

Definition at line 25 of file function.page_tree.php.

◆ $root

$root = $oneback

Definition at line 24 of file function.page_tree.php.

◆ else

while(($level< 10) &&(!file_exists($root.SEC_FILE))) if (file_exists( $root.SEC_FILE)) else
Initial value:
{
$oneback = "../"

This file is part of LEPTON Core, released under the GNU GPL Please see LICENSE and COPYING files in your package for details, specially for terms and warranties.

NOTICE:LEPTON CMS Package has several different licenses. Please see the individual license in the header of each single file or info.php of modules and templates.

Author
LEPTON Project

Definition at line 22 of file function.page_tree.php.