1 | <?php |
||
15 | class DefaultController extends Controller |
||
16 | { |
||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | public function behaviors() |
||
31 | |||
32 | /** |
||
33 | * Lists all AdPosition models. |
||
34 | * @return mixed |
||
35 | */ |
||
36 | public function actionIndex() |
||
46 | |||
47 | /** |
||
48 | * Displays a single AdPosition model. |
||
49 | * @param integer $id |
||
50 | * @return mixed |
||
51 | */ |
||
52 | public function actionView($id) |
||
58 | |||
59 | /** |
||
60 | * Creates a new AdPosition model. |
||
61 | * If creation is successful, the browser will be redirected to the 'view' page. |
||
62 | * @return mixed |
||
63 | */ |
||
64 | public function actionCreate() |
||
76 | |||
77 | /** |
||
78 | * Updates an existing AdPosition model. |
||
79 | * If update is successful, the browser will be redirected to the 'view' page. |
||
80 | * @param integer $id |
||
81 | * @return mixed |
||
82 | */ |
||
83 | public function actionUpdate($id) |
||
95 | |||
96 | /** |
||
97 | * Deletes an existing AdPosition model. |
||
98 | * If deletion is successful, the browser will be redirected to the 'index' page. |
||
99 | * @param integer $id |
||
100 | * @return mixed |
||
101 | */ |
||
102 | public function actionDelete($id) |
||
108 | |||
109 | /** |
||
110 | * Finds the AdPosition model based on its primary key value. |
||
111 | * If the model is not found, a 404 HTTP exception will be thrown. |
||
112 | * @param integer $id |
||
113 | * @return AdPosition the loaded model |
||
114 | * @throws NotFoundHttpException if the model cannot be found |
||
115 | */ |
||
116 | protected function findModel($id) |
||
124 | } |
||
125 |