PHPDoc and code formatting changes

This commit is contained in:
James Brooks
2014-12-20 20:40:48 +00:00
parent 3790ae240e
commit 5eab8093e7
10 changed files with 52 additions and 14 deletions

View File

@@ -14,6 +14,30 @@ class DashComponentController extends Controller {
]);
}
/**
* Shows the edit component view.
* @param Component $component
* @return \Illuminate\View\View
*/
public function showEditComponent(Component $component) {
return View::make('dashboard.component-edit')->with([
'pageTitle' => 'Editing "' . $component->name . '" Component - Dashboard',
'component' => $component
]);
}
/**
* Updates a component.
* @return \Illuminate\Http\RedirectResponse
*/
public function updateComponentAction(Component $component) {
$_component = Input::get('component');
$component->update($_component);
return Redirect::back()->with('savedComponent', $component);
}
/**
* Shows the add component view.
* @return \Illuminate\View\View