public function CommerceFileLicenseEntity::__get in Commerce File 7
Get / Set
- method is preferred with lazy fallback to object property
1 call to CommerceFileLicenseEntity::__get()
File
- includes/
commerce_file_license.entity.inc, line 808 - Provides a base class for CommerceFileLicenseEntity.
Class
- CommerceFileLicenseEntity
- A Commerce File License entity class.
Code
public function __get($name) {
$method = "get_{$name}";
if (method_exists($this, $method)) {
return $this
->{$method}();
}
// allow lazy get
if (isset($this->{$name})) {
return $this->{$name};
}
return NULL;
}