[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] property/inc class.socommon.inc.php class.botts...
From: |
Sigurd Nes |
Subject: |
[Phpgroupware-cvs] property/inc class.socommon.inc.php class.botts... |
Date: |
Wed, 01 Mar 2006 19:30:04 +0000 |
CVSROOT: /sources/phpgroupware
Module name: property
Branch:
Changes by: Sigurd Nes <address@hidden> 06/03/01 19:30:04
Modified files:
inc : class.socommon.inc.php class.botts.inc.php
class.bocommon.inc.php
Log message:
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/property/inc/class.socommon.inc.php.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/property/inc/class.botts.inc.php.diff?tr1=1.17&tr2=1.18&r1=text&r2=text
http://cvs.savannah.gnu.org/viewcvs/phpgroupware/property/inc/class.bocommon.inc.php.diff?tr1=1.25&tr2=1.26&r1=text&r2=text
Patches:
Index: property/inc/class.bocommon.inc.php
diff -u property/inc/class.bocommon.inc.php:1.25
property/inc/class.bocommon.inc.php:1.26
--- property/inc/class.bocommon.inc.php:1.25 Tue Feb 28 13:29:34 2006
+++ property/inc/class.bocommon.inc.php Wed Mar 1 19:30:04 2006
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage core
- * @version $Id: class.bocommon.inc.php,v 1.25 2006/02/28 13:29:34
sigurdne Exp $
+ * @version $Id: class.bocommon.inc.php,v 1.26 2006/03/01 19:30:04
sigurdne Exp $
*/
/**
@@ -1447,5 +1447,9 @@
return $this->socommon->get_max_location_level();
}
+ function active_group_members($group_id)
+ {
+ return $this->socommon->active_group_members($group_id);
+ }
}
?>
Index: property/inc/class.botts.inc.php
diff -u property/inc/class.botts.inc.php:1.17
property/inc/class.botts.inc.php:1.18
--- property/inc/class.botts.inc.php:1.17 Wed Mar 1 17:28:46 2006
+++ property/inc/class.botts.inc.php Wed Mar 1 19:30:04 2006
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage helpdesk
- * @version $Id: class.botts.inc.php,v 1.17 2006/03/01 17:28:46 sigurdne
Exp $
+ * @version $Id: class.botts.inc.php,v 1.18 2006/03/01 19:30:04 sigurdne
Exp $
*/
/**
@@ -757,7 +757,7 @@
if ($this->config->config_data['groupnotification'])
{
// select group recipients
- $members =
$GLOBALS['phpgw']->accounts->member($ticket['group_id']);
+ $members =
$this->bocommon->active_group_members($ticket['group_id']);
}
if ($this->config->config_data['ownernotification'])
Index: property/inc/class.socommon.inc.php
diff -u property/inc/class.socommon.inc.php:1.17
property/inc/class.socommon.inc.php:1.18
--- property/inc/class.socommon.inc.php:1.17 Tue Feb 28 13:29:34 2006
+++ property/inc/class.socommon.inc.php Wed Mar 1 19:30:04 2006
@@ -8,7 +8,7 @@
* @internal Development of this application was funded by
http://www.bergen.kommune.no/bbb_/ekstern/
* @package property
* @subpackage core
- * @version $Id: class.socommon.inc.php,v 1.17 2006/02/28 13:29:34
sigurdne Exp $
+ * @version $Id: class.socommon.inc.php,v 1.18 2006/03/01 19:30:04
sigurdne Exp $
*/
/**
@@ -367,5 +367,19 @@
return $this->db->f('level');
}
+ function active_group_members($group_id = '')
+ {
+ $this->db->query("SELECT phpgw_accounts.account_id,
phpgw_accounts.account_lid FROM phpgw_acl $this->join phpgw_accounts on
phpgw_acl.acl_account = phpgw_accounts.account_id"
+ . " WHERE phpgw_acl.acl_location = $group_id
AND phpgw_acl.acl_appname = 'phpgw_group' AND account_status = 'A'");
+
+ while ($this->db->next_record())
+ {
+ $members[] = array (
+ 'account_id' => $this->db->f('account_id'),
+ 'account_name' => $this->db->f('account_lid')
+ );
+ }
+ return $members;
+ }
}
?>
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] property/inc class.socommon.inc.php class.botts...,
Sigurd Nes <=