Improve Event management
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user