/**
* run
*
* This method defines how we actually
* generate the text we will replace the
* $name value with.
*
* @return String
*/
public function run()
{
if (isset($this->_data['research'])) {
$staff = $this->_data['research']->getStaff();
$staff = $staff->getFirstName() . ' ' . $staff->getLastName();
} elseif (isset($this->_data['staff'])) {
$staff = $this->_data['staff']->getFirstName() .
' ' .
$this->_data['staff']->getLastName();
} elseif(!Auth::isGuest()) {
$staff = Auth::user()->getFirstName() .
' ' .
Auth::user()->getLastName();
} else {
$staff = "";
}
return $staff;
}