inserttextform = $this->_formid; $SESSION->inserttextfield = $this->getAttribute('name'); } } $this->_helpbutton=call_user_func_array($function, $helpbuttonargs); } /** * get html for help button * * @access public * @return string html for help button */ function getHelpButton(){ return $this->_helpbutton; } /** * Called by HTML_QuickForm whenever form event is made on this element * * @param string $event Name of event * @param mixed $arg event arguments * @param object $caller calling object * @since 1.0 * @access public * @return void */ function onQuickFormEvent($event, $arg, &$caller) { switch ($event) { case 'createElement': $this->_formid = $caller->getAttribute('id'); break; } return parent::onQuickFormEvent($event, $arg, $caller); } // end func onQuickFormEvent /** * Slightly different container template when frozen. * * @return string */ function getElementTemplateType(){ if ($this->_flagFrozen){ return 'static'; } else { return 'default'; } } } ?>