1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
$webDocSoap = new WebDocSoap();
if($webDocSoap->isConnected == true) {
foreach ($idDocs as $idDoc) {
$criteres = array( //'commentaire' => $comDoc,
'dateDoc' => date("Y-m-d\TH:i:s\Z"),
'idDoc' => intval($idDoc),
'idOrigine' => 6,
'nom' => $libDoc,
//'utInsertion' => $login
);
$criteres = array_merge($criteres, array('dateFinValidite' => date("Y-m-d\TH:i:s\Z")));
$result = $webDocSoap->updateDocument($criteres);
if(is_soap_fault($result)) {
$cmpltMsg = WebDocSoap::f_error($result);
echo $cmpltMsg;
}
else $this->executerAction("menuGestionMenuPagesEdit");
}
} else $tabDoc = " <p class='webdoc_nodoc'>
<span class='$icon_webdocError'></span><br>
WebDoc non disponible!
</p>"; |