function fetchCopy() { $array = $this->_conn->fetchRow(); if ($array == false) { return false; } $copy = new BiblioCopy(); $copy->setBibid($array["bibid"]); $copy->setCopyid($array["copyid"]); $copy->setCreateDt($array["create_dt"]); $copy->setCopyDesc($array["copy_desc"]); $copy->setBarcodeNmbr($array["barcode_nmbr"]); $copy->setStatusCd($array["status_cd"]); $copy->setStatusBeginDt($array["status_begin_dt"]); $copy->setDueBackDt($array["due_back_dt"]); $copy->setDaysLate($array["days_late"]); $copy->setMbrid($array["mbrid"]); $copy->setRenewalCount($array["renewal_count"]); return $copy; }
function _mkObj($array) { $copy = new BiblioCopy(); $copy->setBibid($array["bibid"]); $copy->setCopyid($array["copyid"]); $copy->setCreateDt($array["create_dt"]); $copy->setCopyDesc($array["copy_desc"]); $copy->setBarcodeNmbr($array["barcode_nmbr"]); $copy->setStatusCd($array["status_cd"]); $copy->setLocationid($array["locationid"]); $copy->setStatusBeginDt($array["status_begin_dt"]); $copy->setDueBackDt($array["due_back_dt"]); $copy->setDaysLate($array["days_late"]); $copy->setMbrid($array["mbrid"]); $copy->setRenewalCount($array["renewal_count"]); $copy->_custom = $this->getCustomFields($array['bibid'], $array['copyid']); return $copy; }
function _mkObj(&$array, &$customs = NULL) { // jalg multi 5-7-2015 ALX $copy = new BiblioCopy(); $copy->setBibid($array["bibid"]); $copy->setCopyid($array["copyid"]); $copy->setCreateDt($array["create_dt"]); $copy->setCopyDesc($array["copy_desc"]); $copy->setBarcodeNmbr($array["barcode_nmbr"]); $copy->setStatusCd($array["status_cd"]); $copy->setStatusBeginDt($array["status_begin_dt"]); $copy->setDueBackDt($array["due_back_dt"]); $copy->setDaysLate($array["days_late"]); $copy->setMbrid($array["mbrid"]); $copy->setRenewalCount($array["renewal_count"]); if (is_null($customs)) { $copy->_custom = $this->getCustomFields($array['bibid'], $array['copyid']); } else { Fatal::dbError($array["copyid"], "not implemented multycopy method", 'No DBMS error.'); if (isset($customs[$array['copyid']])) { $copy->_custom = $customs[$array['copyid']]; } } return $copy; }