SourceForge.net LogoPHPGallue
[ class tree: libbase ] [ index: libbase ] [ all elements ]

Class: GALValue

Source Location: /libbase/config.inc.php

Class Overview


Represents a value inside a GALSection.


Variables

Methods



Class Details

[line 384]
Represents a value inside a GALSection.

It reads and writes the value's content and type.




[ Top ]


Class Variables

$domValue =

[line 391]

The corresponding value element inside the XML document.



Tags:

access:  protected

Type:   DOMElement


[ Top ]



Class Methods


constructor __construct [line 396]

GALValue __construct( $domValue)

Initialize GALValue::$domValue.



Parameters:

DOMElement   $domValue   The corresponding element.

[ Top ]

method getName [line 468]

string getName( )

Returns this value's name.

This method returns the value of this value's "name" attribute.




[ Top ]

method removeFrom [line 407]

DOMText removeFrom( $node)

Deletes the value's tag from the given node.

Internally used to delete a value.




Tags:

return:  The removed value element or false if removing failed.
see:  DOMNode::removeChild()


Parameters:

DOMNode   $node   Usually a section element.

[ Top ]

method setType [line 460]

void setType( string $type)

Set the value's type.



Parameters:

string   $type   The value's new type.

[ Top ]

method __get [line 417]

string __get( string $varName)

Magic method to read the value's type or content in a property-like manner.

If "t" or "type" is given as argument, the value's type is retuned. If "v" or "value" is given as argument, the value's content is retuned.




Tags:

return:  The value's type or the value's content.


Parameters:

string   $varName   either "t"/"type" or "v"/"value"

[ Top ]

method __set [line 438]

void __set( string $varName, string $value)

Magic method to set the value's content or type in a property-like manner.



Parameters:

string   $varName   either "t"/"type" or "v"/"value"
string   $value   The new type or the new content.

[ Top ]


Documentation generated on Wed, 16 Aug 2006 15:35:36 +0200 by phpDocumentor 1.3.0RC6