concrete/src/User/ValidationHash.php
public static function getUserID($hash, $type)
    {
        self::removeExpired($type);
        $db = Database::connection();
        $uID = $db->fetchColumn("SELECT uID FROM UserValidationHashes WHERE uHash = ? AND type = ?", array($hash, $type));
        if (is_numeric($uID) && $uID > 0) {
            return $uID;
        } else {
            return false;
        }
    }
public static function getUserID($hash, $type)
    {
        self::removeExpired($type);
        $db = Database::connection();
        $uID = $db->fetchColumn("SELECT uID FROM UserValidationHashes WHERE uHash = ? AND type = ?", array($hash, $type));
        if (is_numeric($uID) && $uID > 0) {
            return $uID;
        } else {
            return false;
        }
    }
public static function getUserID ( $ hash , $ type ) { self :: removeExpired ( $ type ) ; $ db = Database :: connection ( ) ; $ uID = $ db -> fetchColumn ( "SELECT uID FROM UserValidationHashes WHERE uHash = ? AND type = ?" , array ( $ hash , $ type ) ) ; if ( is_numeric ( $ uID ) && $ uID > 0 ) { return $ uID ; } else { return false ; } }
Gets the users id for a given hash and type.

@param string $hash
@param int $type

@return int | false
Gets the users id for a given hash and type .