public function EntityStructureWrapper::__isset in Entity API 7
Magic method: Can be used to check if a property is known.
File
- includes/
entity.wrapper.inc, line 550 - 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 __isset($name) {
$this
->spotInfo();
return isset($this->propertyInfo['properties'][$name]);
}