48 public function id($format =
'n')
50 return $this->
linkid($format);
60 return $this->
getVar(
'linkid', $format);
68 public function uid($format =
'')
70 return $this->
getVar(
'uid', $format);
94 parent::__construct($db,
'groups_users_link',
'XoopsMembership',
'linkid',
'groupid');
107 $qb = $this->db2->createXoopsQueryBuilder();
109 $qb ->select(
'groupid')
110 ->fromPrefix(
'groups_users_link',
'g')
111 ->where($eb->eq(
'g.uid',
':uid'))
112 ->setParameter(
':uid',
$uid, \PDO::PARAM_INT);
114 while ($myrow =
$result->fetch(\PDO::FETCH_ASSOC)) {
115 $ret[] = $myrow[
'groupid'];
133 $qb = $this->db2->createXoopsQueryBuilder();
136 ->fromPrefix(
'groups_users_link',
'g')
137 ->where($eb->eq(
'g.groupid',
':gid'))
138 ->setParameter(
':gid', $groupid, \PDO::PARAM_INT);
140 $qb->setFirstResult(
$start)
144 while ($myrow =
$result->fetch(\PDO::FETCH_ASSOC)) {
145 $ret[] = $myrow[
'uid'];
getVar($key, $format= 's')
if(!$xoops->isUser()) $uid
__construct(Connection $db=null)
initVar($key, $data_type, $value=null, $required=false, $maxlength=null, $options= '')
getUsersByGroup($groupid, $limit=0, $start=0)