本文整理匯總了PHP中OutputDocument::update方法的典型用法代碼示例。如果您正苦於以下問題:PHP OutputDocument::update方法的具體用法?PHP OutputDocument::update怎麽用?PHP OutputDocument::update使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OutputDocument
的用法示例。
在下文中一共展示了OutputDocument::update方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: JavaBridgePM
if (isset($aData['OUT_DOC_PDF_SECURITY_ENABLED']) && $aData['OUT_DOC_PDF_SECURITY_ENABLED'] == "0") {
$aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = "";
$aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = "";
$aData['OUT_DOC_PDF_SECURITY_PERMISSIONS'] = "";
}
if (isset($aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD']) && $aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] != "") {
$aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'] = G::encrypt($aData['OUT_DOC_PDF_SECURITY_OPEN_PASSWORD'], $aData['OUT_DOC_UID']);
$aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'] = G::encrypt($aData['OUT_DOC_PDF_SECURITY_OWNER_PASSWORD'], $aData['OUT_DOC_UID']);
}
}
if ($aData['OUT_DOC_UID'] == '') {
if (isset($aData['OUT_DOC_TYPE']) && $aData['OUT_DOC_TYPE'] == 'JRXML') {
$dynaformUid = $aData['DYN_UID'];
$outDocUid = $oOutputDocument->create($aData);
G::LoadClass('javaBridgePM');
$jbpm = new JavaBridgePM();
print $jbpm->generateJrxmlFromDynaform($outDocUid, $dynaformUid, 'classic');
} else {
$outDocUid = $oOutputDocument->create($aData);
}
} else {
$oOutputDocument->update($aData);
}
if (isset($aData['PRO_UID'])) {
//refresh dbarray with the last change in outputDocument
$oMap = new processMap();
$oCriteria = $oMap->getOutputDocumentsCriteria($aData['PRO_UID']);
}
} catch (Exception $oException) {
die($oException->getMessage());
}
示例2: updateTest
function updateTest($aTestData, $aFields)
{
$oOutputDocument = new OutputDocument();
try {
return $oOutputDocument->update($aFields);
} catch (Exception $oError) {
return $oError;
}
}