public static function isValid($mode)
    {
        switch (strtolower($mode)) {
        case self::AUTO:
        case self::MANUAL:
        return true;

        default:
        return false;
        }
    }