ManageHeading
1 day ago
ManageValue
1 day ago
SaveHeading
1 day ago
TableRows
1 day ago
TableRowsFactory
1 day ago
Comment.php
1 day ago
ListTable.php
1 day ago
ManageHeadingFactory.php
1 day ago
ManageValueService.php
1 day ago
ManageValueServiceFactory.php
1 day ago
Media.php
1 day ago
MetaType.php
1 day ago
Post.php
1 day ago
TableRows.php
1 day ago
TableRowsFactory.php
1 day ago
TotalItems.php
1 day ago
User.php
1 day 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 | use AC\ListTable\TotalItemsTrait; |
| 17 | |
| 18 | public function __construct() |
| 19 | { |
| 20 | parent::__construct( |
| 21 | new TableId('wp-comments'), |
| 22 | 'edit-comments', |
| 23 | new Labels( |
| 24 | __('Comment'), |
| 25 | __('Comments') |
| 26 | ), |
| 27 | new Url\AdminUrl('edit-comments.php'), |
| 28 | '#the-comment-list' |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | public function list_table(): AC\ListTable |
| 33 | { |
| 34 | return ListTableFactory::create_comment($this->screen_id); |
| 35 | } |
| 36 | |
| 37 | public function get_meta_type(): AC\MetaType |
| 38 | { |
| 39 | return AC\MetaType::create_comment_meta(); |
| 40 | } |
| 41 | |
| 42 | } |
| 43 |