public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/userprogress.php
/**
		 * Checks if the course is now complete.
		 *
		 * @param Boolean True if the course has been completed, false otherwise.
		 */
Checks if the course is now complete.
@param Boolean True if the course has been completed, false otherwise.
Checks if the course is now complete . @param Boolean True if the course has been completed false otherwise .
public function isCourseCompleted() {
			$this->loadFullUnitList();
			if ( ! $this->unitList ) {
				return false;
			}
			foreach ( $this->unitList as $aUnitObj ) {
				if ( ! $this->isUnitCompleted( $aUnitObj->unit_id ) ) {
					return false;
				}
			}
			return true;
		}
public function isCourseCompleted ( ) { $ this -> loadFullUnitList ( ) ; if ( ! $ this -> unitList ) { return false ; } foreach ( $ this -> unitList as $ aUnitObj ) { if ( ! $ this -> isUnitCompleted ( $ aUnitObj -> unit_id ) ) { return false ; } } return true ; }
Checks if the course is now complete.
Checks if the course is now complete .
// If no units to complete, then not complete. // Ensure all units in the course are complete