@@ -60,7 +60,7 @@ public function get() {
6060 public function update () {
6161 // Runs filters.
6262 if ($ result = $ this ->checkVersion ()) return $ result ;
63- return $ this ->store_controller ->update ($ this ->lrs -> _id );
63+ return $ this ->store_controller ->update ($ this ->getOptions () );
6464 }
6565
6666 /**
@@ -70,15 +70,15 @@ public function update() {
7070 public function store () {
7171 // Runs filters.
7272 if ($ result = $ this ->checkVersion ()) return $ result ;
73- return $ this ->store_controller ->store ($ this ->lrs -> _id );
73+ return $ this ->store_controller ->store ($ this ->getOptions () );
7474 }
7575
7676 /**
7777 * Gets an array of statements.
7878 * @return Response
7979 */
8080 public function index () {
81- return $ this ->index_controller ->index ($ this ->lrs -> _id );
81+ return $ this ->index_controller ->index ($ this ->getOptions () );
8282 }
8383
8484 /**
@@ -91,10 +91,9 @@ public function show($id, $voided = false) {
9191 // Runs filters.
9292 if ($ result = $ this ->checkVersion ()) return $ result ;
9393
94- $ statement = $ this ->statements ->show ($ id , [
95- 'lrs_id ' => $ this ->lrs ->_id ,
94+ $ statement = $ this ->statements ->show ($ id , array_merge ([
9695 'voided ' => $ voided
97- ]);
96+ ], $ this -> getOptions ()) );
9897
9998 return \Response::json (Helpers::replaceHtmlEntity ($ statement ), 200 );
10099 }
0 commit comments