public function EntityStructureWrapper::getIterator in Entity API 7
File
- includes/
entity.wrapper.inc, line 555 - Provides wrappers allowing easy usage of the entity metadata.
Class
- EntityStructureWrapper
- Provides a general wrapper for any data structure. For this to work the metadata has to be passed during construction.
Code
public function getIterator() {
$this
->spotInfo();
return new EntityMetadataWrapperIterator($this, array_keys($this->propertyInfo['properties']));
}