isLoggedIn = ( isset($options[0]) && $options[0] === true );
$this->username = ( isset($options[1]) ) ? $options[1] : false;
$this->profileLink = ( isset($options[2]) ) ? $options[2] : true;
$this->moduleName = ( isset($options[3]) ) ? $options[3] : 'profile';
}
public function render($bEcho = true) {
$str = '';
$module = App::Get()->loadModule($this->moduleName);
// Display the appropriate information about the user
if($this->isLoggedIn) {
$str .= "Logged in as ";
if ($this->profileLink) {
$str .= '' . $this->username . ' | '
.'Log Out';
} else {
$str .= $this->username . ' | '
.'Log Out';
}
} else {
$str .= 'Log In';
}
if($bEcho) {
echo $str;
} else {
return $str;
}
}
}