public function CommerceFileLicenseEntity::get_owner in Commerce File 7
Owner
- Read / Write
1 call to CommerceFileLicenseEntity::get_owner()
- CommerceFileLicenseEntity::defaultLabel in includes/
commerce_file_license.entity.inc - Specifies the default label, which is picked up by label() by default.
File
- includes/
commerce_file_license.entity.inc, line 342 - Provides a base class for CommerceFileLicenseEntity.
Class
- CommerceFileLicenseEntity
- A Commerce File License entity class.
Code
public function get_owner() {
if (!isset($this->owner)) {
$this->owner = NULL;
if (isset($this->uid)) {
$this->owner = user_load($this->uid);
}
}
return $this->owner;
}