You are here

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

Implementation for ArrayAccess.

Not implemented.

Return value

mixed The value of the key or NULL.

File

src/AcquiaDAM/AcquiaDAM_Assets_AbstractAsset.inc, line 419

Class

AcquiaDAM_Assets_AbstractAsset
Abstract class base for Acquia DAM assets.

Code

public function offsetGet($offset) {

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