function fetchRow()
 {
     global $postVars;
     $array = $this->_conn->fetchRow();
     if ($array == false) {
         return false;
     }
     //echo "from fetch:<br />";print_r($array);echo "<br />";
     $set = new LookupOpts();
     $set->setProtocol($array["protocol"]);
     $set->setMaxHits($array["max_hits"]);
     $set->setKeepDashes($array["keep_dashes"]);
     $set->setCallNmbrType($array["callNmbr_type"]);
     $set->setAutoDewey($array["auto_dewey"]);
     $set->setDefaultDewey($array["default_dewey"]);
     $set->setAutoCutter($array["auto_cutter"]);
     $set->setCutterType($array["cutter_type"]);
     $set->setCutterWord($array["cutter_word"]);
     $set->setAutoCollect($array["auto_collect"]);
     $set->setFictionName($array["fiction_name"]);
     $set->setFictionCode($array["fiction_code"]);
     $set->setFictionLoC($array["fiction_loc"]);
     $set->setFictionDew($array["fiction_dewey"]);
     return $set;
 }
Beispiel #2
0
$_POST["callNmbrType"] = $set->getCallNmbrType();
$set->setAutoDewey($_POST["autoDewey"]);
$_POST["autoDewey"] = $set->getAutoDewey();
$set->setDefaultDewey($_POST["defaultDewey"]);
$_POST["defaultDewey"] = $set->getDefaultDewey();
$set->setAutoCutter($_POST["autoCutter"]);
$_POST["autoCutter"] = $set->getAutoCutter();
$set->setCutterType($_POST["cutterType"]);
$_POST["cutterType"] = $set->getCutterType();
$set->setCutterWord($_POST["cutterWord"]);
$_POST["cutterWord"] = $set->getCutterWord();
$set->setAutoCollect($_POST["autoCollect"]);
$_POST["autoCollect"] = $set->getAutoCollect();
$set->setFictionName($_POST["fictionName"]);
$_POST["fictionName"] = $set->getFictionName();
$set->setFictionCode($_POST["fictionCode"]);
$_POST["fictionCode"] = $set->getFictionCode();
$set->setFictionLoC($_POST["fictionLoC"]);
$_POST["fictionLoC"] = $set->getFictionLoC();
$set->setFictionDew($_POST["fictionDew"]);
$_POST["fictionDew"] = $set->getFictionDew();
$set->setAWSKey($_POST["awsKey"]);
$_POST["aws"] = $set->getAWSKey();
$set->setAWSSecretKey($_POST["awsSecretKey"]);
$_POST["aws"] = $set->getAWSSecretKey();
$set->setAWSAccountId($_POST["awsAccountId"]);
$_POST["aws"] = $set->getAWSAccountId();
if (!$set->validateData()) {
    //$pageErrors["sessionTimeout"] = $set->getSessionTimeoutError();
    //$pageErrors["itemsPerPage"] = $set->getItemsPerPageError();
    //$pageErrors["purgeHistoryAfterMonths"] = $set->getPurgeHistoryAfterMonthsError();