function importHtmlNode($util) { $name = $util->currentElementName(); $atts = $util->attributeList(); if ($atts) { $list = ArrayUtility::keyValueConcat('="', '" ', $atts); $list = ' ' . $list . '" '; } else { $list = ''; } $html = ' <' . $name . $list . '>'; if ($this->current_option_pattern) { $this->current_option_pattern->addHtml($html); } else { if ($this->accepting_content) { $this->current_input->setValue($this->current_input->value() . $html); } else { if ($this->accepting_button_group_content) { $this->current_input->addHtml($html); } else { if ($this->accepting_form_error_content) { $this->current_input->addHtml($html); } else { $this->output .= $html; } } } } }
/** * Returns the url to the handler with the give class name * * This will return _only_ the url to the main page with the class name of the given * handler and any secondary get vars * @param class_name - the class name to build a site function link for * @param secondary_get_vars - an associative array where the key is * the name of the variable and the element * is the value for that variable to take * when passed into the GET method query * string of a URL * @access public */ function hrefString($class_name, $secondary_get_vars = '') { $var_string = ''; if (is_array($secondary_get_vars) && count($secondary_get_vars)) { $var_string = '&' . ArrayUtility::keyValueConcat('=', '&', $secondary_get_vars); } $ret = Application::MAIN . '?h=' . $class_name . $var_string; return $ret; }