/** * Class constructor * * @access public */ public function __construct() { parent::__construct(); if (VGet::id() && $this->_user['settings']) { $this->_title = 'Edit User'; $this->_roles =& Roles::load(); $this->_roles = $this->_roles->_roles; } else { $this->_title = 'Profile'; } $this->get_user(); $this->get_pictures(); if (VPost::update_profile(false)) { $this->update(); } }