wasp.util
[ class tree: wasp.util ] [ index: wasp.util ] [ all elements ]

Class: Arrays

Source Location: /util/Arrays.php

Class Overview


Utility class for safe handling of arrays


Author(s):

  • brian.fioca@pangomedia.com

Methods



Class Details

[line 27]
Utility class for safe handling of arrays



Tags:

author:  brian.fioca@pangomedia.com
since:  0.5


[ Top ]


Class Methods


method safeGet [line 34]

void safeGet( mixed &$arArray, mixed $oKey)

If the passed in array has the key, return the value, otherwise return null. This allows you to get values from arrays without triggering any Notice warnings if the key isn't present.



Tags:

static:  
access:  public


[ Top ]

method safeSet [line 47]

void safeSet( mixed &$arArray, mixed $oKey, mixed &$oValue)

If the value passed in is not blank or null, adds the key

to the array and sets its value. This allows you to rely on count(array) to be 0 if you try to add blank values into an array




Tags:

static:  
access:  public


[ Top ]


Documentation generated on Sun, 27 Nov 2005 13:15:43 -0500 by phpDocumentor 1.3.0RC3