Checks whether user has been promoted after having given enough valid responses.
boolean Core_Captcha::promoted( [ integer $threshold = null ] )
参数列表
参数 类型 描述 默认值 $thresholdintegerValid response count threshold null 
boolean public static function promoted($threshold = null)
{
    // Promotion has been disabled
    if (Captcha::$config['promote'] === false) return false;
    // Use the config threshold
    if ( $threshold === null )
    {
        $threshold = Captcha::$config['promote'];
    }
    // Compare the valid response count to the threshold
    return (Captcha::valid_count() >= $threshold);
}