Copied!

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

  • property object $parentnode Parent of this node
  • property array $child Array of children for this node
  • property data $data Array of data for this node
  • property object $next Next sibling of this node
  • property object $prev Previous sibling of this node
CloneableInstantiable
Properties
public array $child
 

Array of children for this node

public array $data
 

Array of $data for this node

public string $name
 

The name of the node

public $next
 

Next sibling of this node

  • var object
public $parentnode
 

The parent of this node

  • var object
public $prev
 

Previous sibling of this node

  • var object
Methods
public __construct(string $_name, $_parent, bool $first = false)
 

Create ZCiCalNode

  • param string $_name Name of node
  • param object $_parent Parent node for this node
  • param bool $first Is this the first child for this parent?
public addNode( $node)
 

Add node to list

public export( $node = NULL, int $level = 0)
 

export tree to icalendar format

  • param object $node Top level node to export
  • param int $level Level of recursion (usually leave this blank)
  • throws Exception
  • return string iCalendar formatted output
public getAttrib(int $i) : string
 

Get Attribute

  • param int $i array id of attribute to get
public getFirstChild()
 

Get the first child of this object

  • return object|null The first child
public getName() : string
 

Return the name of the object

public getParent()
 

Get the parent object of this object

  • return object parent of this object
public printDataLine( $d, $p) : string
 

print an attribute line

  • param object $d attributes
  • param object $p properties
public printTree( $node = NULL, int $level = 1) : string
 

Print object tree in HTML for debugging purposes

  • param object $node select part of tree to print, or leave blank for full tree
  • param int $level Level of recursion (usually leave this blank)
  • return string - HTML formatted display of object tree
public setAttrib(string $value) : ICalendarOrg\ZCiCalNode
 

Set Attribute

© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration