[Phpslash-commit] CVS: phpslash-dev/include/modules/author Author.class,1.2,1.3
Brought to you by:
joestewart,
nhruby
From: Joe S. <joe...@us...> - 2004-09-24 20:15:36
|
Update of /cvsroot/phpslash/phpslash-dev/include/modules/author In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22592/phpslash-dev/include/modules/author Modified Files: Author.class Log Message: Author.class - new method - get_group_users Index: Author.class =================================================================== RCS file: /cvsroot/phpslash/phpslash-dev/include/modules/author/Author.class,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Author.class 21 Apr 2003 19:28:47 -0000 1.2 --- Author.class 24 Sep 2004 20:15:27 -0000 1.3 *************** *** 1081,1085 **** } } ! } /* end of Author.class */ ?> --- 1081,1101 ---- } } ! ! function get_group_users($group) { ! $q = "SELECT psl_author.author_name ! FROM psl_group, psl_author_group_lut, psl_author ! WHERE psl_group.group_id = psl_author_group_lut.group_id ! AND psl_author_group_lut.author_id = psl_author.author_id ! AND psl_group.group_name = '$group'"; ! debug("q", $q); ! $this->db->query($q); ! ! $i = 0; ! if ($this->db->next_record()) { ! return $this->db->Record; ! } ! return false; ! } ! } /* end of Author.class */ ?> |