ManageHeading
3 months ago
ManageValue
3 months ago
SaveHeading
3 months ago
TableRows
3 months ago
TableRowsFactory
3 months ago
Comment.php
3 months ago
ListTable.php
3 months ago
ManageHeadingFactory.php
3 months ago
ManageValueService.php
3 months ago
ManageValueServiceFactory.php
3 months ago
Media.php
3 months ago
MetaType.php
3 months ago
Post.php
3 months ago
TableRows.php
3 months ago
TableRowsFactory.php
3 months ago
TotalItems.php
3 months ago
User.php
3 months ago
User.php
42 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 User 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-users'), |
| 23 | 'users', |
| 24 | new Labels( |
| 25 | __('User'), |
| 26 | __('Users') |
| 27 | ), |
| 28 | new Url\AdminUrl('users.php') |
| 29 | ); |
| 30 | } |
| 31 | |
| 32 | public function list_table(): AC\ListTable |
| 33 | { |
| 34 | return ListTableFactory::create_user($this->screen_id); |
| 35 | } |
| 36 | |
| 37 | public function get_meta_type(): AC\MetaType |
| 38 | { |
| 39 | return AC\MetaType::create_user_meta(); |
| 40 | } |
| 41 | |
| 42 | } |