SoftwareLicense::computeValidityIndicator PHP 메소드

computeValidityIndicator() 정적인 공개 메소드

Compute licence validity indicator.
static public computeValidityIndicator ( $ID, $number ) : validity
$ID ID of the licence
$number licence count to check (default -1)
리턴 validity indicator
    static function computeValidityIndicator($ID, $number = -1)
    {
        if ($number >= 0 && $number < Computer_SoftwareLicense::countForLicense($ID, -1)) {
            return 0;
        }
        // Default return 1
        return 1;
    }