src/snac/server/database/SQL.php
/**
     * Select user group record IDs
     *
     * Select all the IDs of groups for a single user. Higher level code will use each id to build a group
     * object (and usually a list of group objects).
     *
     * @param int $appUserID The numeric ID for the user for whom to list groups.
     *
     * @return integer[] Return list of ID values. We expect the higher level calling code to pass each ID to
     * populateGroup().
     */
Select user group record IDs
Select all the IDs of groups for a single user. Higher level code will use each id to build a group
object (and usually a list of group objects).

@param int $appUserID The numeric ID for the user for whom to list groups.

@return integer[] Return list of ID values. We expect the higher level calling code to pass each ID to
populateGroup().
Select user group record IDs Select all the IDs of groups for a single user . Higher level code will use each id to build a group object ( and usually a list of group objects ) . @param int $appUserID The numeric ID for the user for whom to list groups . @return integer [] Return list of ID values . We expect the higher level calling code to pass each ID to populateGroup () .
public function selectUserGroupIDs($appUserID)
    {
        $result = $this->sdb->query("select gg.id from appuser_group as gg,appuser_group_link
                                    where appuser_group_link.uid=$1 and gg.id=gid order by label asc",
                                    array($appUserID));
        $all = array();
        while($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row['id']);
        }
        return $all;
    }
public function selectUserGroupIDs ( $ appUserID ) { $ result = $ this -> sdb -> query ( " select gg.id from appuser_group as gg,appuser_group_link
                                    where appuser_group_link.uid=$1 and gg.id=gid order by label asc " , array ( $ appUserID ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row [ 'id' ] ) ; } return $ all ; }
Select user group record IDs
 Select all the IDs of groups for a single user.
Select user group record IDs Select all the IDs of groups for a single user .