3 include_once (
"OFFLINE/Interface.DomainHook.php");
9 $domain->addComment(__METHOD__);
16 $domain->addComment(__METHOD__);
21 $domain->addComment(__METHOD__);
25 $domain->addComment(__METHOD__);
32 $domain->addComment(__METHOD__);
37 $domain->addComment(__METHOD__);
45 $domain->addComment(__METHOD__);
50 $domain->addComment(__METHOD__ . $updatedDoc->getTitle());
51 $updatedDoc->addComment(__METHOD__ .
':' . serialize($data));
58 $doc->addComment(__METHOD__);
59 $classid = $doc->getValue(
"es_classe");
60 if ($classid !=
'1126') {
62 $domain->addComment(__METHOD__ .
' ' . $doc->getTitle(), HISTO_INFO);
66 $domain->addComment(__METHOD__ .
" not pull $classid " . $doc->getTitle(), HISTO_ERROR);
67 return 'not a reptilia';
75 $domain->addComment(__METHOD__ . $doc->getTitle());
76 $doc->addComment(__METHOD__ .
':' . serialize($data));
81 $domain->addComment(__METHOD__ . $doc->getTitle());
82 $doc->addComment(__METHOD__ .
':' . serialize($data));
84 public function onBeforeSaveDocument(_OfflineDomain &$domain, Doc &$waitDoc, Doc &$refererDoc = null, $data = null)
88 $domain->addComment(__METHOD__ . $refererDoc->getTitle());
89 $refererDoc->addComment(__METHOD__ .
':' . serialize($data));
90 $err .= simpleQuery($refererDoc->dbaccess,
"select id, locked, revision from doc where locked != -1 and initid=" . $refererDoc->initid, $res,
false,
true);
92 $err = $refererDoc->addRevision(
"before save in synchro");
93 $err .= simpleQuery($refererDoc->dbaccess,
"select id, locked, revision from doc where locked != -1 and initid=" . $refererDoc->initid, $res,
false,
true);
onBeforePullSharedDocuments(_OfflineDomain &$domain)
onAfterSaveTransaction(_OfflineDomain &$domain)
onAfterPushDocument(_OfflineDomain &$domain, Doc &$doc, $data=null)
onAfterPushTransaction(_OfflineDomain &$domain)
onBeforePushDocument(_OfflineDomain &$domain, Doc &$doc, $data=null)
onBeforeSaveDocument(_OfflineDomain &$domain, Doc &$waitDoc, Doc &$refererDoc=null, $data=null)
onAfterPullSharedDocuments(_OfflineDomain &$domain)
onBeforePullUserDocuments(_OfflineDomain &$domain)
onPullDocument(_OfflineDomain &$domain, Doc &$doc)
onAfterSaveDocument(_OfflineDomain &$domain, Doc &$updatedDoc, $data=null)
onAfterPullUserDocuments(_OfflineDomain &$domain)
onBeforePushTransaction(_OfflineDomain &$domain)