Improve Event management

This commit is contained in:
Roland Schneider
2019-01-15 07:28:43 +01:00
parent e3b6bc08a7
commit 8decd1bc79
15 changed files with 695 additions and 278 deletions

View File

@@ -32,7 +32,12 @@ class InventoryItemController extends Controller
/**
* Lists all InventoryItem models.
* @param $id
* @return mixed
* @throws NotFoundHttpException
* @throws \PHPExcel_Exception
* @throws \PHPExcel_Reader_Exception
* @throws \PHPExcel_Writer_Exception
*/
public function actionIndex($id)
{
@@ -62,7 +67,13 @@ class InventoryItemController extends Controller
]);
}
/**
* @param $dataProvider
* @throws \PHPExcel_Exception
* @throws \PHPExcel_Reader_Exception
* @throws \PHPExcel_Writer_Exception
*/
protected function downloadIndexXls($dataProvider){
@@ -132,11 +143,12 @@ class InventoryItemController extends Controller
$objWriter->save ( 'php://output' );
exit ();
}
/**
* Displays a single InventoryItem model.
* @param integer $id
* @return mixed
* @throws NotFoundHttpException
*/
public function actionView($id)
{
@@ -149,6 +161,7 @@ class InventoryItemController extends Controller
* Creates a new InventoryItem model.
* If creation is successful, the browser will be redirected to the 'view' page.
* @return mixed
* @throws \Exception
*/
public function actionCreate($id)
{
@@ -172,6 +185,7 @@ class InventoryItemController extends Controller
* If update is successful, the browser will be redirected to the 'view' page.
* @param integer $id
* @return mixed
* @throws NotFoundHttpException
*/
public function actionUpdate($id)
{
@@ -200,6 +214,8 @@ class InventoryItemController extends Controller
* If deletion is successful, the browser will be redirected to the 'index' page.
* @param integer $id
* @return mixed
* @throws NotFoundHttpException
* @throws \yii\db\StaleObjectException
*/
public function actionDelete($id)
{