PHP Class LrsController, learninglocker

Inheritance: extends BaseController
Afficher le fichier Open project: learninglocker/learninglocker

Protected Properties

Свойство Type Description
$analytics
$lrs
$statements

Méthodes publiques

Méthode Description
__construct ( Locker\Repository\Lrs\Repository $lrs, Locker\Repository\Statement\Repository $statement ) Constructs a new LrsController.
api ( String $lrs_id ) : View Display the api view.
changeRole ( $lrs_id, $user, $role )
create ( ) : View Show the form for creating a new resource.
destroy ( String $lrs_id ) : View Remove the specified resource from storage.
edit ( String $lrs_id ) : View Show the form for editing the specified resource.
getGraphData ( $lrs_id )
getStats ( $lrs_id, $segment = '' )
index ( ) : View Display a listing of LRSs available for user.
inviteUsersForm ( $lrs_id )
show ( String $lrs_id ) : View Display the specified resource.
statements ( String $lrs_id ) : View Display statements for this LRS
store ( ) : View Store a newly created resource in storage.
update ( String $lrs_id ) : View Update the specified resource in storage.
users ( String $lrs_id ) : View Display users with access to this lrs.
usersRemove ( $lrs_id )

Private Methods

Méthode Description
getLrs ( $lrs_id )

Method Details

__construct() public méthode

Constructs a new LrsController.
public __construct ( Locker\Repository\Lrs\Repository $lrs, Locker\Repository\Statement\Repository $statement )
$lrs Locker\Repository\Lrs\Repository
$statement Locker\Repository\Statement\Repository

api() public méthode

Display the api view.
public api ( String $lrs_id ) : View
$lrs_id String
Résultat View

changeRole() public méthode

public changeRole ( $lrs_id, $user, $role )

create() public méthode

Show the form for creating a new resource.
public create ( ) : View
Résultat View

destroy() public méthode

Remove the specified resource from storage.
public destroy ( String $lrs_id ) : View
$lrs_id String
Résultat View

edit() public méthode

Show the form for editing the specified resource.
public edit ( String $lrs_id ) : View
$lrs_id String
Résultat View

getGraphData() public méthode

public getGraphData ( $lrs_id )

getStats() public méthode

public getStats ( $lrs_id, $segment = '' )

index() public méthode

Display a listing of LRSs available for user.
public index ( ) : View
Résultat View

inviteUsersForm() public méthode

public inviteUsersForm ( $lrs_id )

show() public méthode

This is a temp hack until the single page app for analytics is ready. v1.0 stable.
public show ( String $lrs_id ) : View
$lrs_id String
Résultat View

statements() public méthode

Display statements for this LRS
public statements ( String $lrs_id ) : View
$lrs_id String
Résultat View

store() public méthode

Store a newly created resource in storage.
public store ( ) : View
Résultat View

update() public méthode

Update the specified resource in storage.
public update ( String $lrs_id ) : View
$lrs_id String
Résultat View

users() public méthode

Display users with access to this lrs.
public users ( String $lrs_id ) : View
$lrs_id String
Résultat View

usersRemove() public méthode

public usersRemove ( $lrs_id )

Property Details

$analytics protected_oe property

protected $analytics

$lrs protected_oe property

protected $lrs

$statements protected_oe property

protected $statements