sObject = $sNewObject; $this->sObjectPath = $sNewObjectPath; $this->sNewQuery = $sNewQuery; $this->aDisplayRowNames = $aNewDisplayRowNames; $this->aParameterNumbers = $aNewParameterNumbers; $this->aDisplayColumnTypes = $aNewDisplayColumnTypes; $this->aRequired = $aNewRequired; $this->aDropDownListTableNames = $aNewDropDownListTableNames; $this->aDropDownListValueColumns = $aNewDropDownListValueColumns; $this->aDropDownListDisplayColumns = $aNewDropDownListDisplayColumns; } function setUniqueName($sNewValue) { $this->sUniqueName = $sNewValue; } function setDefaultValues($aNewValue) { $this->aDefaultValues = $aNewValue; } function render() { global $default; $this->sUniqueName .= KTUtil::randomString(); $_SESSION["pelfq_" . $this->sUniqueName . "_object"] = $this->sObject; $_SESSION["pelfq_" . $this->sUniqueName . "_fn"] = $this->sObjectPath; $_SESSION["pageAccess"][$default->rootUrl . '/presentation/lookAndFeel/knowledgeTree/create.php'] = true; $sToRender = "
| " . $this->aDisplayRowNames[$i] . " | sUniqueName . "_" . $i . "_value\" value=\"" . (isset($this->aDefaultValues[$i]) ? $this->aDefaultValues[$i] : "") . "\" /> | \n"; break; case 2: //write the type (in this case checkbox) $sToRender .= "sUniqueName . "_" . $i . "_type\" value=\"2\" />\n"; //write the value $sToRender .= "" . $this->aDisplayRowNames[$i] . " | sUniqueName . "_" . $i . "_value\" value=\"1\" /> | \n"; break; case 3: //write the type (in this case dropdown) $sToRender .= "sUniqueName . "_" . $i . "_type\" value=\"3\" />\n"; $sDisplayColumn; $sValueColumn; //write the value if (isset($this->aDropDownListValueColumns[$i])) { $sValueColumn = $this->aDropDownListValueColumns[$i]; } else { $sValueColumn = "id"; } if (isset($this->aDropDownListDisplayColumns[$i])) { $sDisplayColumn = $this->aDropDownListDisplayColumns[$i]; } else { $sDisplayColumn = "name"; } $oPatternListBox = & new PatternListBox($this->aDropDownListTableNames[$i], $sDisplayColumn, $sValueColumn, $this->sUniqueName . "_" . $i . "_value"); $sToRender .= "\t" . $this->aDisplayRowNames[$i] . " | " . $oPatternListBox->render() . " | \t\n"; break; default; break; } $sToRender .= "