protected function Entity::setUp

cis7 entity.inc protected Entity::setUp()
cle7 entity.inc protected Entity::setUp()
elmsmedia7 entity.inc protected Entity::setUp()
icor7 entity.inc protected Entity::setUp()
meedjum_blog7 entity.inc protected Entity::setUp()
mooc7 entity.inc protected Entity::setUp()

Set up the object instance on construction or unserializiation.

3 calls to Entity::setUp()
Entity::__construct in sites/all/modules/ulmus/entity/includes/entity.inc
Creates a new entity.
Entity::__wakeup in sites/all/modules/ulmus/entity/includes/entity.inc
Magic method to invoke setUp() on unserialization.
FieldCollectionItemEntity::__wakeup in sites/all/modules/ulmus/field_collection/field_collection.module
Magic method to invoke setUp() on unserialization.

File

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

Class

Entity
A common class for entities.

Code

protected function setUp() {
  $this->entityInfo = entity_get_info($this->entityType);
  $this->idKey = $this->entityInfo['entity keys']['id'];
  $this->nameKey = isset($this->entityInfo['entity keys']['name']) ? $this->entityInfo['entity keys']['name'] : $this->idKey;
  $this->statusKey = empty($this->entityInfo['entity keys']['status']) ? 'status' : $this->entityInfo['entity keys']['status'];
}
Error | ELMSLN API

Error

×

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/elmsln_community/api.elmsln.org/includes/common.inc:2791) in drupal_send_headers() (line 1499 of /var/www/html/elmsln_community/api.elmsln.org/includes/bootstrap.inc).
  • Error: Call to undefined function apc_delete() in DrupalAPCCache->clear() (line 289 of /var/www/html/elmsln_community/api.elmsln.org/sites/all/modules/apc/drupal_apc_cache.inc).
The website encountered an unexpected error. Please try again later.