public function getMetaDataFile() { parent::getMetaDataFile(); global $current_user; if ($this->bean->realty_status == 'realtor' && $current_user->id != $this->bean->assigned_user_id) { $getMetaDataFile = 'custom/modules/RealtyTemplates/metadata/detailviewdefsTypeRealtor.php'; } else { $getMetaDataFile = 'custom/modules/RealtyTemplates/metadata/detailviewdefs.php'; } return $getMetaDataFile; }
public function getMetaDataFile() { $userType = 'Regular'; if ($this->bean->is_group == 1) { $userType = 'Group'; } if ($userType != 'Regular') { $oldType = $this->type; $this->type = $oldType . 'group'; } $metadataFile = parent::getMetaDataFile(); if ($userType != 'Regular') { $this->type = $oldType; } return $metadataFile; }