1 | <?php |
||
13 | class FormContentDelete extends Model |
||
14 | { |
||
15 | public $id; |
||
16 | public $title; |
||
17 | |||
18 | private $_record; |
||
19 | |||
20 | /** |
||
21 | * FormContentDelete constructor. Pass object in model on init |
||
22 | * @param Content $record |
||
23 | */ |
||
24 | public function __construct(Content $record) |
||
29 | |||
30 | /** |
||
31 | * Set readable title of content to property |
||
32 | */ |
||
33 | public function before() |
||
38 | |||
39 | /** |
||
40 | * Form display labels |
||
41 | * @return array |
||
42 | */ |
||
43 | public function labels() |
||
49 | |||
50 | /** |
||
51 | * Make delete |
||
52 | * @throws \Exception |
||
53 | */ |
||
54 | public function make() |
||
60 | } |