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

Class: PropertyHolder

Source Location: /SupportLib/PropertyHolder.php

Interface Overview


Defines a generic interface for objects that can manage name/value property pairs. Different holders can be defined that use either memory, databases, files or even network storage and swapped in as needed.


Author(s):

  • Randy L. Pearson

Version:

  • 0.2

Methods



Class Details

[line 18]
Defines a generic interface for objects that can manage name/value property pairs. Different holders can be defined that use either memory, databases, files or even network storage and swapped in as needed.



Tags:

author:  Randy L. Pearson
version:  0.2


[ Top ]


Class Methods


method add [line 26]

void add( string $name, [string $value = ""])

Adds a new property to the bag.



Tags:

access:  public


Parameters:

string   $name   Name of the new property.
string   $value   Value of the property. (Default: "")

[ Top ]

method isValidName [line 43]

boolean isValidName( string $name)

Tests to see if a property name is valid.



Tags:

return:  true/false
access:  public
since:  0.2 - Nov 6, 2006


Parameters:

string   $name   The property name.

[ Top ]

method names [line 33]

array names( )

Returns a list of valid property names.



Tags:

return:  An array of the current property names as strings.
access:  public


[ Top ]


Documentation generated on Wed, 15 Nov 2006 08:48:07 -0600 by phpDocumentor 1.3.1