CPAINT
[ class tree: CPAINT ] [ index: CPAINT ] [ all elements ]

Class: cpaint_node

Source Location: /inc/cpaint/cpaint2.inc.php

Class Overview


a cpaint data node. Data nodes are used to build up the response.


Author(s):

Version:

  • 2.1.0

Copyright:

  • 2005-2006 (Dominique Stender); All rights reserved

Variables

Methods



Class Details

[line 549]
a cpaint data node. Data nodes are used to build up the response.



Tags:

author:  Dominique Stender <dstender@st-webdevelopment.de>
version:  2.1.0
copyright:  2005-2006 (Dominique Stender); All rights reserved
access:  public


[ Top ]


Class Variables

$attributes =

[line 564]

node attributes.



Tags:

access:  public

Type:   array


[ Top ]

$composites =

[line 556]

array of subnodes.



Tags:

access:  public

Type:   array


[ Top ]

$data =

[line 580]

textual data of this node.



Tags:

access:  public

Type:   string


[ Top ]

$nodename =

[line 572]

name of this node.



Tags:

access:  public

Type:   string


[ Top ]



Class Methods


constructor __construct [line 607]

void __construct( )

PHP 5 constructor.



Tags:

access:  public


[ Top ]

constructor cpaint_node [line 597]

void cpaint_node( )

PHP4 constructor.



Tags:

access:  public


[ Top ]

method add_node [line 628]

object &add_node( string $nodename, [string $id = ''])

adds a new subnode to this node.

will return a reference to it for further processing.




Tags:

access:  public


Parameters:

string   $nodename   name of the new node
string   $id   id of the new node

[ Top ]

method get_attribute [line 705]

string get_attribute( string $name)

retrieves an attribute by name.



Tags:

access:  public


Parameters:

string   $name   attribute name

[ Top ]

method get_data [line 657]

mixed get_data( )

returns the textual data assigned to this node.



Tags:

access:  public


[ Top ]

method get_encoding [line 747]

string get_encoding( )

returns the character encoding for this node



Tags:

access:  public


[ Top ]

method get_id [line 682]

string get_id( )

returns the id property if this node.



Tags:

deprecated:  deprecated since version 2.0.0
access:  public


[ Top ]

method get_name [line 726]

string get_name( )

get name property.



Tags:

access:  public


[ Top ]

method set_attribute [line 694]

void set_attribute( string $name, mixed $value)

adds a new attribute to this node.



Tags:

access:  public


Parameters:

string   $name   attribute name
mixed   $value   attribute value

[ Top ]

method set_data [line 647]

void set_data( mixed $data)

assigns textual data to this node.



Tags:

access:  public


Parameters:

mixed   $data   data to assign to this node

[ Top ]

method set_encoding [line 737]

void set_encoding( string $encoding)

sets the character encoding for this node



Tags:

access:  public


Parameters:

string   $encoding   character encoding

[ Top ]

method set_id [line 669]

void set_id( string $id)

sets the id property of this node.



Tags:

deprecated:  deprecated since version 2.0.0
access:  public


Parameters:

string   $id   id the id

[ Top ]

method set_name [line 716]

void set_name( string $name)

set name property.



Tags:

access:  public


Parameters:

string   $name   the name

[ Top ]


Documentation generated on Mon, 03 Aug 2009 21:33:12 +0200 by phpDocumentor 1.4.2