public/wordpress/wp-content/plugins/wishlist-member-addon-for-wp-courseware/class_members.inc.php
/**
		 * Creates the page that shows the level mapping for users.
		 */
Creates the page that shows the level mapping for users.
Creates the page that shows the level mapping for users .
function showMembershipMappingLevels()
		{
			$page = new PageBuilder(false);
			$page->showPageHeader($this->extensionName . ' ' . __('&amp; Automatic Course Access Settings', 'wp_courseware'), false, WPCW_icon_getPageIconURL());
			$levelID = false;
			$showSummary = true;
			if (isset($_GET['level_id']))
			{
				$levelID = trim($_GET['level_id']);
				if ($levelID) 
				{
					$levelList = $this->getMembershipLevels();
					if (isset($levelList[$levelID])) 
					{
						$showSummary = false;
						$this->showMembershipMappingLevels_specificLevel($page, $levelList[$levelID]);
					}
					else {
						$page->showMessage(__('That level does not appear to exist.', 'wp_courseware'), true);
					}
				} 
			} 
			if ($showSummary) {
				$this->showMembershipMappingLevels_overview($page);
			}
			$page->showPageFooter();
		}
function showMembershipMappingLevels ( ) { $ page = new PageBuilder ( false ) ; $ page -> showPageHeader ( $ this -> extensionName . ' ' . __ ( '&amp; Automatic Course Access Settings' , 'wp_courseware' ) , false , WPCW_icon_getPageIconURL ( ) ) ; $ levelID = false ; $ showSummary = true ; if ( isset ( $ _GET [ 'level_id' ] ) ) { $ levelID = trim ( $ _GET [ 'level_id' ] ) ; if ( $ levelID ) { $ levelList = $ this -> getMembershipLevels ( ) ; if ( isset ( $ levelList [ $ levelID ] ) ) { $ showSummary = false ; $ this -> showMembershipMappingLevels_specificLevel ( $ page , $ levelList [ $ levelID ] ) ; } else { $ page -> showMessage ( __ ( 'That level does not appear to exist.' , 'wp_courseware' ) , true ) ; } } } if ( $ showSummary ) { $ this -> showMembershipMappingLevels_overview ( $ page ) ; } $ page -> showPageFooter ( ) ; }
Creates the page that shows the level mapping for users.
Creates the page that shows the level mapping for users .
// Page Intro // Check for parameters for modifying the levels for a specific level // Seem to have a level, check it exists in the list // Found the level in the list of levels we have. // Show the page for editing those specific level settings. // Not found in list, show an error. // end if ($levelID) // end  if (isset($_GET['level_id'])) // Showing summary, as not editing a specific level above. // Page Footer