1 | <?php |
||
20 | class ManageBlock extends \Icybee\Block\ManageBlock |
||
21 | { |
||
22 | static protected function add_assets(Document $document) |
||
28 | |||
29 | public function __construct($module, array $attributes = []) |
||
38 | |||
39 | /** |
||
40 | * Adds the following columns: |
||
41 | * |
||
42 | * - `username`: An instance of {@link ManageBlock\UsernameColumn}. |
||
43 | * - `email`: An instance of {@link ManageBlock\EmailColumn}. |
||
44 | * - `roles`: An instance of {@link ManageBlock\RolesColumn}. |
||
45 | * - `created_at`: An instance of {@link \Icybee\Block\ManageBlock\DateTimeColumn}. |
||
46 | * - `logged_at`: An instance of {@link ManageBlock\LoggedAtColumn}. |
||
47 | * - `is_activated`: An instance of {@link ManageBlock\IsActivatedColumn}. |
||
48 | * |
||
49 | * @inheritdoc |
||
50 | */ |
||
51 | protected function get_available_columns() |
||
64 | |||
65 | /** |
||
66 | * Filters records according to the constructor (the module that created the record). |
||
67 | * |
||
68 | * @inheritdoc |
||
69 | */ |
||
70 | protected function alter_query(Query $query, array $filters) |
||
75 | |||
76 | /** |
||
77 | * Adds the following jobs: |
||
78 | * |
||
79 | * - `activate`: Activate the selected records. |
||
80 | * - `deactivate`: Deactivate the selected records. |
||
81 | * |
||
82 | * @inheritdoc |
||
83 | */ |
||
84 | protected function get_available_jobs() |
||
93 | } |
||
94 |