src/snac/server/database/SQL.php
/**
     * Select user API key data
     *
     * Selects all API key data for the given user id
     *
     * @param int $appUserID The numeric ID for the user
     *
     * @return string[][] A 2-d associative array of the user's API-key data out of Postgres
     */
Select user API key data
Selects all API key data for the given user id

@param int $appUserID The numeric ID for the user

@return string[][] A 2-d associative array of the user's API-key data out of Postgres
Select user API key data Selects all API key data for the given user id @param int $appUserID The numeric ID for the user @return string [] [] A 2 - d associative array of the user ' s API - key data out of Postgres
public function selectUserKeys($appUserID)
    {
        $result = $this->sdb->query("select * from api_keys
                                    where uid=$1 order by generated asc",
                                    array($appUserID));
        $all = array();
        while($row = $this->sdb->fetchrow($result))
        {
            array_push($all, $row);
        }
        return $all;
    }
public function selectUserKeys ( $ appUserID ) { $ result = $ this -> sdb -> query ( " select * from api_keys
                                    where uid=$1 order by generated asc " , array ( $ appUserID ) ) ; $ all = array ( ) ; while ( $ row = $ this -> sdb -> fetchrow ( $ result ) ) { array_push ( $ all , $ row ) ; } return $ all ; }
Select user API key data
 Selects all API key data for the given user id
Select user API key data Selects all API key data for the given user id