\ZCiCalNode

Object for storing a list of unfolded iCalendar lines (ZCiCalDataNode objects)

Summary

Methods
Properties
Constants
__construct()
getName()
addNode()
getAttrib()
setAttrib()
getParent()
getFirstChild()
printTree()
export()
printDataLine()
$name
$parentnode
$child
$data
$next
$prev
$parentnode
$child
$data
$next
$prev
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : string

The name of the node

Type

string

$parentnode

$parentnode : object

The parent of this node

Type

object

$child

$child : array

Array of children for this node

Type

array

$data

$data : array

Array of $data for this node

Type

array

$next

$next : object

Next sibling of this node

Type

object

$prev

$prev : object

Previous sibling of this node

Type

object

$parentnode

$parentnode : object

Parent of this node

Type

object

$child

$child : array

Array of children for this node

Type

array

$data

$data : \data

Array of data for this node

Type

\data

$next

$next : object

Next sibling of this node

Type

object

$prev

$prev : object

Previous sibling of this node

Type

object

Methods

__construct()

__construct(string  $_name, object  $_parent, boolean  $first = false) 

Create ZCiCalNode

Parameters

string $_name

Name of node

object $_parent

Parent node for this node

boolean $first

Is this the first child for this parent?

getName()

getName() : string

Return the name of the object

Returns

string

addNode()

addNode(object  $node) 

Add node to list

Parameters

object $node

getAttrib()

getAttrib(integer  $i) : string

Get Attribute

Parameters

integer $i

array id of attribute to get

Returns

string

setAttrib()

setAttrib(string  $value) 

Set Attribute

Parameters

string $value

value of attribute to set

getParent()

getParent() : object

Get the parent object of this object

Returns

object —

parent of this object

getFirstChild()

getFirstChild() : object

Get the first child of this object

Returns

object —

The first child

printTree()

printTree(object  $node = null, integer  $level = 1) : string

Print object tree in HTML for debugging purposes

Parameters

object $node

select part of tree to print, or leave blank for full tree

integer $level

Level of recursion (usually leave this blank)

Returns

string —
  • HTML formatted display of object tree

export()

export(object  $node = null, integer  $level) : string

export tree to icalendar format

Parameters

object $node

Top level node to export

integer $level

Level of recursion (usually leave this blank)

Returns

string —

iCalendar formatted output

printDataLine()

printDataLine(object  $d, object  $p) 

print an attribute line

Parameters

object $d

attributes

object $p

properties