public function Entity::hasStatus

cis7 entity.inc public Entity::hasStatus($status)
cle7 entity.inc public Entity::hasStatus($status)
elmsmedia7 entity.inc public Entity::hasStatus($status)
icor7 entity.inc public Entity::hasStatus($status)
meedjum_blog7 entity.inc public Entity::hasStatus($status)
mooc7 entity.inc public Entity::hasStatus($status)

Checks if the entity has a certain exportable status.

Parameters

$status: A status constant, i.e. one of ENTITY_CUSTOM, ENTITY_IN_CODE, ENTITY_OVERRIDDEN or ENTITY_FIXED.

Return value

For exportable entities TRUE if the entity has the status, else FALSE. In case the entity is not exportable, NULL is returned.

See also

entity_has_status()

File

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

Class

Entity
A common class for entities.

Code

public function hasStatus($status) {
  if (!empty($this->entityInfo['exportable'])) {
    return isset($this->{$this->statusKey}) && ($this->{$this->statusKey} & $status) == $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.