Overview

Namespaces

  • None
  • swag

Classes

  • H5pSwagifact
  • H5pUtil
  • SettingsPageController
  • ShortcodeUtil
  • SwagMapController
  • SwagPageController
  • Swagpath
  • SwagpathController
  • SwagpathSyncer
  • SwagPlugin
  • SwagPostItem
  • SwagTgmpaController
  • SwagTrack
  • SwagTrackController
  • SwagUser
  • Template
  • Xapi
  • Overview
  • Namespace
  • Class

Class Swagpath

Represents a Swagpath. Has an underlying post of the "swagpath" post type.

Located at model/Swagpath.php
Methods summary
public
# getId( )

Get id.

Get id.

public
# getDisplayColor( )

Get display color.

Get display color.

public
# getTrack( )

Get track.

Get track.

public
# getTopLevelTrack( )

Get slug for top level track.

Get slug for top level track.

public
# getPost( )

Get underlying post.

Get underlying post.

public
# getLessonPlanUrl( )

Get lesson plan url, if any.

Get lesson plan url, if any.

public
# getSwagPostItems( )

Get items.

Get items.

public
# getSelectedItem( )

Get selected item based on $_REQUEST["tab"]

Get selected item based on $_REQUEST["tab"]

public
# getPrerequisites( )

Get prerequisite swagpaths.

Get prerequisite swagpaths.

public static
# getCurrent( )

Get the current swag path, created from the current Wordpress post.

Get the current swag path, created from the current Wordpress post.

public
# getRelatedStatements( $swagUser )

Get related statements for the given user.

Get related statements for the given user.

public
# getXapiObjectId( )

Get object id.

Get object id.

public
# isCurrentUserPreparedForPrerequisites( )

Is the current user prepared for the prerequisites?

Is the current user prepared for the prerequisites?

public
# isCurrentUserPrepared( )

Does the current user have all prerequisites?

Does the current user have all prerequisites?

public
# isCompletedByUser( $swagUser )

Is this swagpath completed by the user?

Is this swagpath completed by the user?

public
# isCompletedByCurrentUser( )

Is this swagpath completed by the current user?

Is this swagpath completed by the current user?

public static
# getByTrackId( $parentTrackId )

Get by track id.

Get by track id.

public static
# getById( $postId )

Get Swagpath by id.

Get Swagpath by id.

public static
# getBySlug( $slug )

Get Swagpath by slug.

Get Swagpath by slug.

public static
# findAllForTopLevelTrack( $slug )

Find all for a certain top level track.

Find all for a certain top level track.

public static
# findAll( )

Find all swagpaths.

Find all swagpaths.

public
# saveProvidedSwag( $swagUser )

Save xapi statements for provided swag for current user. If there is already a matching statement, a new one will not be saved.

Save xapi statements for provided swag for current user. If there is already a matching statement, a new one will not be saved.

public
# isAllSwagPostItemsCompleted( $swagUser )

Are all the swag post items completed?

Are all the swag post items completed?

public
# saveProvidedSwagIfCompleted( $swagUser )

Save provided swag if the user has completed all swagifacts for the swagpath.

Save provided swag if the user has completed all swagifacts for the swagpath.

Swag API documentation generated by ApiGen