51 $doc = new_doc($this->dbaccess, $docid,
true);
52 if ($doc->isAlive()) {
53 if (method_exists($doc, $method)) {
54 $domain=new_doc($this->dbaccess, $this->getValue(
"off_domain"));
55 $err = call_user_func(array($doc, $method), $domain, $this);
58 $err = sprintf(_(
"document %s not found"), $docid);
72 $doc = new_doc($this->dbaccess, $docid,
true);
73 if ($doc->isAlive()) {
74 $doc->updateDomains();
80 if (method_exists($doc,
"onAfterInsertIntoDomain")) {
82 $err = $doc->onAfterInsertIntoDomain();
91 $doc = new_doc($this->dbaccess, $docid,
true);
92 if ($doc->isAlive()) {
93 $doc->updateDomains();
94 $docuid = $this->getValue(
"off_user");
97 $err .= simpleQuery($this->dbaccess, sprintf(
"select id from users where fid=%d", $docuid), $uid,
true,
true);
100 require_once
"FDL/Class.DocWait.php";
101 $docWait =
new DocWait($this->dbaccess, array(
105 if ($docWait->isAffected()) {
106 $err .= $docWait->delete();
callHookDocument($docid, $method)