<?php
	require_once( $GLOBALS["site_root"]."/includes/pages/MyProfilePage.inc.php" );
	require_once( $GLOBALS["site_root"]."/includes/widgets/SystemArticle.inc.php" );
	require_once( $GLOBALS["site_root"]."/includes/widgets/MyCapacityPane.inc.php" );
	
	require_once( $GLOBALS["site_root"] . "/includes/models/MyMember.inc.php" );
	
	class MyCapacityPage extends MyProfilePage {
		protected $oMyCapacityPane;

		public function __construct( $id = "MyCapacityPage" , $parent = null , $pagetype = "my_profile" ) {
			parent::__construct( $id , $parent , $pagetype );
			$mmm = new MyMemberModel();
			if ($mmm->isMemberLoggedin()) {
				$this->oMyCapacityPane = new MyCapacityPane( "content_widget" , $this );
			} else {
				$this->oMyCapacityPane = new SystemArticle( "content_widget" , $this , "sys_error_user_has_to_login" );
			}
		}
	}

?>
