Contentserv PHP API

CSHierarchyNode
in package

Hierarchy node class

Tags
since

CS21.0

Table of Contents

__construct()  : void
Creates a hierarchy node
addSubnode()  : void
Adds a sub node to this hierarchy node
getObjectId()  : int
Returns the object id mapped to this node.
getSubnodes()  : array<string|int, mixed>
Returns all sub nodes of the current hierarchy node
getTemplateId()  : int
Returns the template id mapped to this node.

Methods

__construct()

Creates a hierarchy node

public __construct(int $iTemplateId, int $iObjectId[, bool $bRecursive = false ]) : void
Parameters
$iTemplateId : int

The template id mapped to this hierarchy node

$iObjectId : int

The object id mapped to this hierarchy node

$bRecursive : bool = false

Defines whether this hierarchy node is recursive

Tags
access

public

Return values
void

getObjectId()

Returns the object id mapped to this node.

public getObjectId() : int
Tags
access

public

Return values
int

Mapped object id

getSubnodes()

Returns all sub nodes of the current hierarchy node

public getSubnodes() : array<string|int, mixed>
Tags
access

public

Return values
array<string|int, mixed>

List of sub nodes

getTemplateId()

Returns the template id mapped to this node.

public getTemplateId() : int
Tags
access

public

Return values
int

Mapped template id


        

Search results