info = array(); $this->params = array(); $this->setInfo("name", $name); } /** * Returns value of a property by name * @method getInfo * @param string name * @returns string value of a property if found, false otherwise */ function getInfo($name) { if(array_key_exists($name, $this->info)) return $this->info[$name]; else return false; } /** * Sets a property with supplied name to a supplied value * @method setInfo * @param string name, string value * @returns none */ function setInfo($name, $value) { $this->info[$name] = $value; } /** * Sets a parameter with supplied name and value * @method setParam * @param string name, string value * @returns none */ function setParam($name, $value) { $this->params[$name] = $value; } }