* @license https://www.gnu.org/licenses/gpl-3.0.en.html GNU General Public License V3 * @package SWDB */ require_once(PATH::PAGE . "Page.php"); /** * User profile page model. * * @category Page */ class Profile_Page extends Page{ /** * Constructor. * * Retrieves the data and initializes the variables. */ public function __construct(){ parent::__construct(); $this->set_public(false); $this->set_view("profile.php"); $this->set_title(get_context()->get_user()->get_name() . "'s profile"); $this->set_description(get_context()->get_user()->get_name() . "'s profile settings"); $this->set_canonical("profile/"); $this->set_code(200); $this->set_message("OK"); } } ?>