ManageHeading
1 month ago
ManageValue
1 month ago
SaveHeading
1 month ago
TableRows
1 month ago
TableRowsFactory
1 month ago
Comment.php
1 month ago
ListTable.php
1 month ago
ManageHeadingFactory.php
1 month ago
ManageValueService.php
1 month ago
ManageValueServiceFactory.php
1 month ago
Media.php
1 month ago
MetaType.php
1 month ago
Post.php
1 month ago
TableRows.php
1 month ago
TableRowsFactory.php
1 month ago
TotalItems.php
1 month ago
User.php
1 month ago
Comment.php
43 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC\TableScreen; |
| 6 | |
| 7 | use AC; |
| 8 | use AC\ListTableFactory; |
| 9 | use AC\TableScreen; |
| 10 | use AC\Type\Labels; |
| 11 | use AC\Type\TableId; |
| 12 | use AC\Type\Url; |
| 13 | |
| 14 | class Comment extends TableScreen implements ListTable, MetaType, TotalItems |
| 15 | { |
| 16 | |
| 17 | use AC\ListTable\TotalItemsTrait; |
| 18 | |
| 19 | public function __construct() |
| 20 | { |
| 21 | parent::__construct( |
| 22 | new TableId('wp-comments'), |
| 23 | 'edit-comments', |
| 24 | new Labels( |
| 25 | __('Comment'), |
| 26 | __('Comments') |
| 27 | ), |
| 28 | new Url\AdminUrl('edit-comments.php'), |
| 29 | '#the-comment-list' |
| 30 | ); |
| 31 | } |
| 32 | |
| 33 | public function list_table(): AC\ListTable |
| 34 | { |
| 35 | return ListTableFactory::create_comment($this->screen_id); |
| 36 | } |
| 37 | |
| 38 | public function get_meta_type(): AC\MetaType |
| 39 | { |
| 40 | return AC\MetaType::create_comment_meta(); |
| 41 | } |
| 42 | |
| 43 | } |