function controlToHTML($name)
 {
     // initialize the time if none was set on instantiation
     if ($this->default == 0) {
         $this->default = time();
     }
     //get only the time part of the timestamp
     $myDate = getdate($this->default);
     $this->default = $myDate["hours"] * 60 * 60 + $myDate["minutes"] * 60;
     $template = new ControlTemplate("TimeControl");
     $template->assign('name', $name);
     $template->assign('timestamp', $this->default);
     $template->assign('hourformat', exponent_datetime_getHourFormat());
     $template->assign('showcontrol', $this->showControl ? "true" : "false");
     return $template->render();
 }
 function show($view = "Default")
 {
     //TODO: do some introspection, get the name of the class
     $template = new ControlTemplate(get_class($this), $view);
     // pass the viewitem(by reference) on to the next step of the pipeline: output
     $template->viewitem =& $this;
     return $template->render();
 }