| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 15 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | public function initialize() |
||
| 22 | { |
||
| 23 | parent::initialize(); |
||
| 24 | |||
| 25 | $this->mapAction('collectionAdd', AddEditAction::class, [ |
||
| 26 | 'method' => ['POST'], |
||
| 27 | 'mapCors' => true, |
||
| 28 | 'path' => 'collection/add' |
||
| 29 | ]); |
||
| 30 | $this->mapAction('collectionEdit', AddEditAction::class, [ |
||
| 31 | 'method' => ['POST'], |
||
| 32 | 'mapCors' => true, |
||
| 33 | 'path' => 'collection/edit' |
||
| 34 | ]); |
||
| 35 | $this->mapAction('collectionDelete', DeleteAction::class, [ |
||
| 36 | 'method' => ['POST'], |
||
| 37 | 'mapCors' => true, |
||
| 38 | 'path' => 'collection/delete' |
||
| 39 | ]); |
||
| 40 | |||
| 41 | $this->setTable('Articles'); |
||
| 42 | } |
||
| 43 | } |
||
| 44 |