1 | <?php |
||
15 | class Select extends AbstractEvent implements EventInterface |
||
16 | { |
||
17 | |||
18 | const ACTION_BEFORE_SELECT = 'before.select'; |
||
19 | const ACTION_AFTER_SELECT = 'after.select'; |
||
20 | |||
21 | /** |
||
22 | * @var string |
||
23 | */ |
||
24 | protected $name = 'Select'; |
||
25 | |||
26 | /** |
||
27 | * @var string |
||
28 | */ |
||
29 | protected $action = self::ACTION_BEFORE_SELECT; |
||
30 | |||
31 | /** |
||
32 | * Gets select query |
||
33 | * |
||
34 | * @return \Slick\Database\Sql\Select |
||
35 | */ |
||
36 | 2 | public function getQuery() |
|
40 | |||
41 | /** |
||
42 | * Gets data returned from query |
||
43 | * |
||
44 | * @return RecordList|null |
||
45 | */ |
||
46 | 2 | public function getData() |
|
50 | |||
51 | /** |
||
52 | * Gets already mapped entity collection |
||
53 | * |
||
54 | * @return EntityCollection |
||
55 | */ |
||
56 | 2 | public function getEntityCollection() |
|
60 | } |