You are here

protected function EntityMetadataWrapper::clear in Entity API 7

Clears the data value and the wrapper cache.

2 calls to EntityMetadataWrapper::clear()
EntityMetadataWrapper::set in includes/entity.wrapper.inc
Set a new data value.
EntityStructureWrapper::clear in includes/entity.wrapper.inc
Clears the data value and the wrapper cache.
1 method overrides EntityMetadataWrapper::clear()
EntityStructureWrapper::clear in includes/entity.wrapper.inc
Clears the data value and the wrapper cache.

File

includes/entity.wrapper.inc, line 169
Provides wrappers allowing easy usage of the entity metadata.

Class

EntityMetadataWrapper
A common base class for all wrappers.

Code

protected function clear() {
  $this->data = NULL;
  foreach ($this->cache as $wrapper) {
    $wrapper
      ->clear();
  }
}