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 SwagPostItem

An item in a swag post.

Direct known subclasses

H5pSwagifact
Located at model/SwagPostItem.php
Methods summary
public
# __construct( $type, $parameters )

Constructor.

Constructor.

public
# preShow( )

Notification that this item is about to be shown.

Notification that this item is about to be shown.

public
# saveCompletedStatement( $swagUser )

Save a completed statement to xapi. This is normally done by other components, but sometimes it can be useful to override this...

Save a completed statement to xapi. This is normally done by other components, but sometimes it can be useful to override this...

public
# setSwagPost( $swagPost )

Set index.

Set index.

public
# setIndex( $index )

Set index.

Set index.

public
# isSelected( )

Is this the selected index? Determines this by checking the $_REQUEST["tab"] value.

Is this the selected index? Determines this by checking the $_REQUEST["tab"] value.

public
# getUrl( )

Get direct url.

Get direct url.

public
# isCompleted( $swagUser )

Is this part completed?

Is this part completed?

public
# getObjectUrl( )

Get xAPI object for checking completion.

Get xAPI object for checking completion.

public
# getTitle( )

Get the title.

Get the title.

public
# isTypeAvailable( )

Is the type for this item available?

Is the type for this item available?

public
# getContent( )

Get content.

Get content.

public static
# create( $type, $slug )

Create.

Create.

Properties summary
protected $index
#
protected $swagPost
#
protected $type
#
protected $parameters
#
Swag API documentation generated by ApiGen