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;
}