funclist)) { return ''; } $buffer = '\n"; } /** * Check if the widget is registered */ public function isRegistered($widget) { return array_key_exists($widget, $this->widgetlist); } /** * Defines a new function. */ public function defun($widget, $funcname, array $params) { array_push($this->widgetlist, $widget); $this->funclist[$widget.$funcname] = array( 'object' => $widget, 'funcname' => $funcname, 'params' => $params, ); } } ?>