modules/api/v1/controllers/AbuseReportController.php
/**
     * Deletes an existing AbuseReport model.
     * If deletion is successful, the browser will be redirected to the 'index' page.
     * @param integer $id
     * @return mixed
     * @throws NotFoundHttpException if the model cannot be found
     */
Deletes an existing AbuseReport model.
If deletion is successful, the browser will be redirected to the 'index' page.
@param integer $id
@return mixed
@throws NotFoundHttpException if the model cannot be found
Deletes an existing AbuseReport model . If deletion is successful the browser will be redirected to the ' index ' page . @param integer $id @return mixed @throws NotFoundHttpException if the model cannot be found
public function actionDelete($id)
    {
        $model = AbuseReport::findOne($id);
        if (!$model instanceof AbuseReport) {
            throw new NotFoundHttpException('Abuse report doesn\'t exist.');
        }
        $model->delete();
    }
public function actionDelete ( $ id ) { $ model = AbuseReport :: findOne ( $ id ) ; if ( ! $ model instanceof AbuseReport ) { throw new NotFoundHttpException ( 'Abuse report doesn\'t exist.' ) ; } $ model -> delete ( ) ; }
Deletes an existing AbuseReport model.
Deletes an existing AbuseReport model .