You are here

public function AcquiaDAM_Assets_AbstractAsset::isExpired in Media: Acquia DAM 7

Checks if the current asset is expired.

Return value

bool TRUE if the asset is expired, FALSE otherwise.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 358

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

public function isExpired() {
  return !empty($this->asset['expiration']['dateUnix']) ? $this->asset['expiration']['dateUnix'] <= REQUEST_TIME : FALSE;
}