public function Entity::internalIdentifier

cis7 entity.inc public Entity::internalIdentifier()
cle7 entity.inc public Entity::internalIdentifier()
elmsmedia7 entity.inc public Entity::internalIdentifier()
icor7 entity.inc public Entity::internalIdentifier()
meedjum_blog7 entity.inc public Entity::internalIdentifier()
mooc7 entity.inc public Entity::internalIdentifier()

Returns the internal, numeric identifier.

Returns the numeric identifier, even if the entity type has specified a name key. In the latter case, the numeric identifier is supposed to be used when dealing generically with entities or internally to refer to an entity, i.e. in a relational database. If unsure, use Entity:identifier().

File

sites/all/modules/ulmus/entity/includes/entity.inc, line 70
Provides a base class for entities.

Class

Entity
A common class for entities.

Code

public function internalIdentifier() {
  return isset($this->{$this->idKey}) ? $this->{$this->idKey} : NULL;
}