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

@param string $hash

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