public function getRender($data) { $this->userCompiled = FormHelper::getDataVal($data, "hw2cf_user_saved"); $tmpl = FormHelper::findTemplateFile("hw2cf/forms/contract.php"); if (!$tmpl) { $tmpl = PATH_HW2CF_PLG . 'src/templates/forms/contract.php'; } ob_start(); include $tmpl; return ob_get_clean(); }
public static function getUserFormName($data) { return FormHelper::getDataVal($data, "hw2cf_user_first_name") . " " . FormHelper::getDataVal($data, "hw2cf_user_last_name"); }
function getDataVal($key) { return FormHelper::getDataVal($this->data, $key); }