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 render() { $sToRender = "
| " . $this->aDisplayRowNames[$i] . " | sUniqueName . "_" . $i . "_value, '" . $this->aDisplayRowNames[$i] . "')\" /> | \n"; } else { $sToRender .= "" . $this->aDisplayRowNames[$i] . " | sUniqueName . "_" . $i . "_value value=\"\" /> | \n"; }*/ $sToRender .= "" . $this->aDisplayRowNames[$i] . " | sUniqueName . "_" . $i . "_value\" value=\"\" /> | \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->sDropDownListValueColumns[$i])) { $sValueColumn = $this->sDropDownListValueColumns[$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 .= "