| 1 | <?php |
||
| 20 | class Action extends BaseAction |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * Returns the data model based on the primary key given in the param. |
||
| 24 | * If the data model is not found, an HTTP exception will be raised. |
||
| 25 | * |
||
| 26 | * @param int $id the ID of the model to be loaded |
||
| 27 | * @param string $class |
||
| 28 | * |
||
| 29 | * @return ActiveRecordInterface the loaded model |
||
| 30 | * |
||
| 31 | * @throws HttpException |
||
| 32 | */ |
||
| 33 | public function findModel($id, $class) |
||
| 40 | } |
||
| 41 |