25 $this->refreshParentGroup();
35 return self::postStore();
45 global $refreshedGrpId;
47 if (!isset($refreshedGrpId[$this->
id])) {
61 if ($multiple ==
false) {
109 if (!$nomail) $nomail = ($this->
getRawValue(
"grp_hasmail") ==
"no");
112 $s = new \SearchDoc($this->dbaccess);
113 $s->useCollection($this->initid);
116 $mail = $account[
"us_mail"];
117 if (!$mail) $account[
"grp_mail"];
118 if ($mail) $tmail[] = $mail;
120 $gmail = implode(
", ", array_unique($tmail));
121 $this->SetValue(
"GRP_MAIL", $gmail);
134 function refreshParentGroup()
136 include_once (
"FDL/freedom_util.php");
137 include_once (
"FDL/Lib.Dir.php");
139 $sqlfilters[] = sprintf(
"in_textlist(grp_idgroup,'%s')", $this->
id);
144 $tidpgroup = array();
148 foreach ($tgroup as $k => $v) {
150 $tpgroup[] = $v->title;
151 $tidpgroup[] = $v->id;
154 $this->SetValue(
"GRP_IDPGROUP", implode(
"\n", $tidpgroup));
162 include_once (
"FDL/Lib.Dir.php");
167 if (
count($tu) > 0) {
168 foreach ($tu as $k => $v) {
169 $tmemid[] = $v[
"id"];
170 $tmem[] = $v[
"title"];
172 $this->SetValue(
"GRP_IDGROUP", $tmemid);
183 $err = $this->refreshGroup();
SetGroupMail($nomail=false)
postInsertDocument($docid, $multiple=false)
count($onlyprimary=false)
modify($nopost=false, $sfields="", $nopre=false)
internalGetDocCollection($dbaccess, $dirid, $start="0", $slice="ALL", $sqlfilters=array(), $userid=1, $qtype="LIST", $fromid="", $distinct=false, $orderby="title", $latest=true, $trash="", &$debug=null, $folderRecursiveLevel=2, $join= '',\SearchDoc &$searchDoc=null)
refreshMailMembersOnChange()
getFamIdFromName($dbaccess, $name)
deprecatedFunction($msg= '')
postInsertMultipleDocuments($tdocid)
if($file) if($subject==""&&$file) if($subject=="") $err
getRawValue($idAttr, $def="")
postRemoveDocument($docid, $multiple=false)