src/snac/server/database/DBUser.php
/**
     * Get the user id if you only know the email address. We must be assuming the email addresses are unique.
     *
     * Might be called readUserIDByEmail. "Find" is not a word we use anywhere else in function names
     * here. There is an attempt to follow some predictable convention for function names.
     *
     * @param string $email
     *
     * @return integer $uid Return an integer user id or false.
     */
Get the user id if you only know the email address. We must be assuming the email addresses are unique.
Might be called readUserIDByEmail. "Find" is not a word we use anywhere else in function names
here. There is an attempt to follow some predictable convention for function names.

@param string $email

@return integer $uid Return an integer user id or false.
Get the user id if you only know the email address . We must be assuming the email addresses are unique . Might be called readUserIDByEmail . " Find " is not a word we use anywhere else in function names here . There is an attempt to follow some predictable convention for function names . @param string $email @return integer $uid Return an integer user id or false .
public function findUserID($email)
    {
        $appUserID = $this->sql->selectUserByEmail($email);
        if (isset($appUserID['id']))
        {
            return $appUserID['id'];
        }
        return false;
    }
public function findUserID ( $ email ) { $ appUserID = $ this -> sql -> selectUserByEmail ( $ email ) ; if ( isset ( $ appUserID [ 'id' ] ) ) { return $ appUserID [ 'id' ] ; } return false ; }
Get the user id if you only know the email address.
Get the user id if you only know the email address .
/*
         * In fact, selectUserByEmail() returns an entire user record from the database as an associative
         * list.
         */