Exemple #1
0
 /**
  * Function getFields
  *
  * @author David S. Callizaya S. <*****@*****.**>
  * @access public
  * @param string template
  * @param int $therow
  * @return string
  */
 public function getFields($template, $therow = -1)
 {
     $o = new xmlformTemplate($this, $template);
     return $o->getFields($this, $therow);
 }
 /**
  * Generic function to print the current object.
  *
  * @param $template
  * @param &$scriptContent
  * @return string
  */
 public function render($template, &$scriptContent)
 {
     $o = new xmlformTemplate($this, $template);
     if (is_array(reset($this->values))) {
         $this->rows = count(reset($this->values));
     }
     $o->template = $o->printTemplate($this);
     $scriptContent = $o->printJavaScript($this);
     return $o->printObject($this);
 }