protected $use_p_tags = NULL;
protected $base_path = NULL;
- protected $user_name = NULL;
/**
$this->use_p_tags = FALSE;
$this->base_path = '';
- $this->user_name = '';
}
/**
public function __destruct() {
unset($this->use_p_tags);
unset($this->base_path);
- unset($this->user_name);
parent::__destruct();
}
if (isset($settings['base_path']) && is_string($settings['base_path'])) {
$this->base_path = $settings['base_path'];
}
-
- if (isset($settings['database_user']) && is_string($settings['database_user'])) {
- $this->user_name = $settings['database_user'];
- }
}
/**
$roles = $current_user->get_roles();
}
- $wrapper->set_tag($this->pr_create_tag_text_block($this->pr_get_text(2, array('@{user}' => $this->user_name))));
+ $wrapper->set_tag($this->pr_create_tag_text_block($this->pr_get_text(2, array('@{user}' => $session->get_name()->get_value_exact()))));
$block = $this->pr_create_tag_text_block(NULL);
$block->set_tag($this->pr_create_tag_text(3));
// Content
$wrapper->set_tag($this->pr_create_tag_title(3));
- $wrapper->set_tag($this->pr_create_tag_text_block(4, array('@{user}' => $this->user_name)));
+ $wrapper->set_tag($this->pr_create_tag_text_block(4, array('@{user}' => $session->get_name()->get_value_exact())));
$wrapper->set_tag($this->pr_create_tag_break());
$this->settings['database_name'] = 'reservation';
$this->settings['database_user_public'] = 'u_reservation_public';
- $this->settings['database_name'] = 'reservation';
- $this->settings['database_user'] = 'u_reservation_public';
-
- $this->settings['session_system'] = 'reservation';
+ $this->settings['session_system'] = 'reservation';
$this->settings['cookie_name'] = 'reservation-session';
}