PHP Class LrsController, learninglocker

Inheritance: extends BaseController
Mostrar archivo Open project: learninglocker/learninglocker

Protected Properties

Property Type Description
$analytics
$lrs
$statements

Public Methods

Method 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

Method Description
getLrs ( $lrs_id )

Method Details

__construct() public method

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 method

Display the api view.
public api ( String $lrs_id ) : View
$lrs_id String
return View

changeRole() public method

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

create() public method

Show the form for creating a new resource.
public create ( ) : View
return View

destroy() public method

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

edit() public method

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

getGraphData() public method

public getGraphData ( $lrs_id )

getStats() public method

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

index() public method

Display a listing of LRSs available for user.
public index ( ) : View
return View

inviteUsersForm() public method

public inviteUsersForm ( $lrs_id )

show() public method

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
return View

statements() public method

Display statements for this LRS
public statements ( String $lrs_id ) : View
$lrs_id String
return View

store() public method

Store a newly created resource in storage.
public store ( ) : View
return View

update() public method

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

users() public method

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

usersRemove() public method

public usersRemove ( $lrs_id )

Property Details

$analytics protected_oe property

protected $analytics

$lrs protected_oe property

protected $lrs

$statements protected_oe property

protected $statements