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

Go to the source code of this file.

Functions

 is_parent (int $iPageId)
 

Variables

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

Function Documentation

◆ is_parent()

is_parent ( int  $iPageId)

check if the page with the given id has children

Parameters
int$iPageId- page ID
Returns
int (0 if page hasn't children, parent id if not)

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

Variable Documentation

◆ $level

$level = 1

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

◆ $root

$root = $oneback

Definition at line 26 of file function.is_parent.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.is_parent.php.