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

Go to the source code of this file.

Functions

 get_parent_ids (int $iParentId)
 

Variables

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

Function Documentation

◆ get_parent_ids()

get_parent_ids ( int $iParentId)

Function to get all parent page id's

Parameters
int$iParentId- page ID
Returns
array :0 if page hasn't children, parent id if not

Definition at line 49 of file function.get_parent_ids.php.

Variable Documentation

◆ $level

$level = 1

Definition at line 27 of file function.get_parent_ids.php.

◆ $root

$root = $oneback

Definition at line 26 of file function.get_parent_ids.php.

◆ else

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

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