You are here

public function CommerceFileLicenseEntity::is_allowed in Commerce File 7

Returns true if license is in the allowed state

3 calls to CommerceFileLicenseEntity::is_allowed()
CommerceFileLicenseEntity::allow in includes/commerce_file_license.entity.inc
ALLOW - sets state to 'allowed' with the default status
CommerceFileLicenseEntity::can_download in includes/commerce_file_license.entity.inc
Returns true if license can be downloaded
CommerceFileLicenseEntity::deny in includes/commerce_file_license.entity.inc
DENY - sets state to 'denied' with the default status

File

includes/commerce_file_license.entity.inc, line 170
Provides a base class for CommerceFileLicenseEntity.

Class

CommerceFileLicenseEntity
A Commerce File License entity class.

Code

public function is_allowed() {
  return $this
    ->get_state() == 'allowed';
}