diff --git a/core/trunk/core/class/BaseObject.php b/core/trunk/core/class/BaseObject.php index 4b1d34d0b330b45825c964986ea7f1234f91f7aa..53eb38a11508fd08cead4322e0cca23b3547b206 100644 --- a/core/trunk/core/class/BaseObject.php +++ b/core/trunk/core/class/BaseObject.php @@ -99,11 +99,19 @@ class BaseObject { return $this->data; } + /** + * Sets an array in the current object + */ public function setArray($array) { $this->data = $array; } - + + /** + * Get label of a given property + * + * @return String label + */ public function getLabel($name){ if(in_array($name, array_keys($data))){ return eval("_".strtoupper($name)); @@ -111,6 +119,15 @@ class BaseObject { return ""; } } - + + /** + * Delete a given property in the current object + * + * @param string $name Name of property to delete + */ + public function __unset($name) + { + unset($this->data[$name]); + } } ?>