+ // +X2C Operation 59
+ /**
+ * Renders the widget using a template returning a string with the results.
+ *
+ * @param HTML_Template_HIT &$template Template object to render the widget.
+ *
+ * @return string
+ * @access public
+ */
+ function renderContents(&$template) // ~X2C
+ {
+ $c = count($this->contents);
+ $o = '';
+ for ($i = 0; $i < $c; $i++) {
+ if (is_object($this->contents[$i])) {
+ $o .= $this->contents[$i]->render($template);
+ } else {
+ $o .= $this->contents[$i];
+ }
+ }
+ return $o;
+ }
+ // -X2C
+
+