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