Class TinyMVCSimpleContainer

Description

simple container implementation

Located in /lib/TinyMVCSimpleContainer.class.php (line 15)


	
			
Method Summary
 void add ( $key,  $value)
 void addElement (string $key, mixed $value)
 void get ( $key, [ $nullValue = null])
 mixed getElement (string $key, [mixed $nullValue = null])
 array getElements ()
 bool isKeyExists (string $key)
 void remove (string $key)
Methods
add (line 30)

Alias: addElement()

  • access: public
void add ( $key,  $value)
  • $key
  • $value
addElement (line 23)

add element to container

  • access: public
void addElement (string $key, mixed $value)
  • string $key: element key
  • mixed $value: element value
get (line 47)

Alias: getElement()

  • access: public
void get ( $key, [ $nullValue = null])
  • $key
  • $nullValue
getElement (line 40)

get element from container

  • return: element
  • access: public
mixed getElement (string $key, [mixed $nullValue = null])
  • string $key: element key
  • mixed $nullValue: return value for non-existent key
getElements (line 63)

get all elements from container

  • return: list of elements
  • access: public
array getElements ()
getElementsNum (line 71)

get number of elements in container

  • return: number of elements
  • access: public
int getElementsNum ()
isKeyExists (line 80)

check, whether or not element with given key exists

  • access: public
bool isKeyExists (string $key)
  • string $key: element key
remove (line 55)

remove element from container

  • access: public
void remove (string $key)
  • string $key: element key

Documentation generated on Wed, 12 Sep 2007 23:14:39 +0100 by phpDocumentor 1.4.0a2