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

Class: DataItem

Source Location: /classes/dataitem.class.php

Class Overview


This class represents a data item, i.e. a value, represented by a key to identify it. It acts more like a struct than a class, in the way that it's only meant to store data, not manipulate it.


Author(s):

Methods



Class Details

[line 9]
This class represents a data item, i.e. a value, represented by a key to identify it. It acts more like a struct than a class, in the way that it's only meant to store data, not manipulate it.



Tags:

author:  Daniel Nordstrom <dnordstrom@mankindorganization.com>
link:  www.mrnordstrom.com


[ Top ]


Class Methods


constructor __construct [line 20]

DataItem __construct( [string $k = ""], [string $v = ""])

Constructor.



Parameters:

string   $k   Key.
string   $v   Value to associate to key.

[ Top ]

method GetKey [line 33]

string GetKey( )

GetKey()

Returns key.




Tags:

return:  Key representing the item.
access:  public


[ Top ]

method GetValue [line 45]

string GetValue( )

GetValue()

Returns value.




Tags:

return:  Value of item.
access:  public


[ Top ]

method SetValue [line 57]

void SetValue( string $value)

GetValue()

Sets value.




Tags:

access:  public


Parameters:

string   $value   New value.

[ Top ]


Documentation generated on Mon, 26 May 2008 19:59:42 +0100 by phpDocumentor 1.4.0