You are here

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

Implementation for ArrayAccess.

Not implemented.

Return value

bool TRUE if the offset exists.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 400

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

public function offsetExists($offset) {

  // Fetch the asset if it isn't already loaded.
  if (empty($this->asset)) {
    $this
      ->get();
  }
  return isset($this->asset[$offset]);
}