Acf
2 days ago
Admin
2 days ago
Ajax
2 days ago
ApplyFilter
2 days ago
Asset
2 days ago
Capabilities
2 days ago
Check
2 days ago
Collection
2 days ago
Column
2 days ago
ColumnFactories
2 days ago
ColumnFactory
2 days ago
ColumnIterator
2 days ago
ColumnRepository
2 days ago
ColumnSize
2 days ago
DI
2 days ago
DefaultColumnHandler
2 days ago
Deprecated
2 days ago
Entity
2 days ago
Exception
2 days ago
Expression
2 days ago
Form
2 days ago
Formatter
2 days ago
Helper
2 days ago
Integration
2 days ago
ListScreenRepository
2 days ago
ListTable
2 days ago
Message
2 days ago
Meta
2 days ago
Nonce
2 days ago
Notice
2 days ago
Plugin
2 days ago
Preferences
2 days ago
Promo
2 days ago
Request
2 days ago
RequestHandler
2 days ago
Response
2 days ago
Sanitize
2 days ago
Service
2 days ago
Setting
2 days ago
Settings
2 days ago
Storage
2 days ago
Table
2 days ago
TableIdsFactory
2 days ago
TableScreen
2 days ago
TableScreenFactory
2 days ago
ThirdParty
2 days ago
Type
2 days ago
Value
2 days ago
View
2 days ago
Acf.php
2 days ago
AdminColumns.php
2 days ago
ArrayIterator.php
2 days ago
Capabilities.php
2 days ago
Collection.php
2 days ago
CollectionFormatter.php
2 days ago
Column.php
2 days ago
ColumnCollection.php
2 days ago
ColumnFactoryCollectionFactory.php
2 days ago
ColumnFactoryDefinitionCollection.php
2 days ago
ColumnGroups.php
2 days ago
ColumnIterator.php
2 days ago
ColumnNamesTrait.php
2 days ago
ColumnRepository.php
2 days ago
ColumnTypeRepository.php
2 days ago
Config.php
2 days ago
DateFormats.php
2 days ago
DefaultColumnHandler.php
2 days ago
Expirable.php
2 days ago
Formatter.php
2 days ago
FormatterCollection.php
2 days ago
Helper.php
2 days ago
ListScreen.php
2 days ago
ListScreenCollection.php
2 days ago
ListScreenRepository.php
2 days ago
ListScreenRepositoryWritable.php
2 days ago
ListTable.php
2 days ago
ListTableFactory.php
2 days ago
Loader.php
2 days ago
Message.php
2 days ago
MetaType.php
2 days ago
Middleware.php
2 days ago
OpCacheInvalidateTrait.php
2 days ago
PluginActionLinks.php
2 days ago
PluginActionUpgrade.php
2 days ago
PostType.php
2 days ago
PostTypeRepository.php
2 days ago
Registerable.php
2 days ago
Registry.php
2 days ago
Renderable.php
2 days ago
Request.php
2 days ago
RequestAjaxHandler.php
2 days ago
RequestAjaxHandlers.php
2 days ago
RequestAjaxParser.php
2 days ago
RequestHandler.php
2 days ago
RequestHandlerFactory.php
2 days ago
Screen.php
2 days ago
Services.php
2 days ago
TableIdsFactory.php
2 days ago
TableScreen.php
2 days ago
TableScreenFactory.php
2 days ago
Taxonomy.php
2 days ago
Transient.php
2 days ago
TypedArrayIterator.php
2 days ago
View.php
2 days ago
WooCommerce.php
2 days ago
WpListTableFactory.php
2 days ago
TableScreen.php
72 lines
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace AC; |
| 6 | |
| 7 | use AC\Type\Labels; |
| 8 | use AC\Type\TableId; |
| 9 | use AC\Type\Uri; |
| 10 | |
| 11 | class TableScreen |
| 12 | { |
| 13 | protected TableId $id; |
| 14 | |
| 15 | protected string $screen_id; |
| 16 | |
| 17 | protected Labels $labels; |
| 18 | |
| 19 | private Uri $url; |
| 20 | |
| 21 | protected bool $network; |
| 22 | |
| 23 | private string $attr_id; |
| 24 | |
| 25 | public function __construct( |
| 26 | TableId $id, |
| 27 | string $screen_id, |
| 28 | Labels $labels, |
| 29 | Uri $url, |
| 30 | ?string $attr_id = null, |
| 31 | bool $network = false |
| 32 | ) { |
| 33 | $this->id = $id; |
| 34 | $this->screen_id = $screen_id; |
| 35 | $this->labels = $labels; |
| 36 | $this->url = $url; |
| 37 | $this->network = $network; |
| 38 | $this->attr_id = $attr_id ?? '#the-list'; |
| 39 | } |
| 40 | |
| 41 | public function get_url(): Uri |
| 42 | { |
| 43 | return $this->url; |
| 44 | } |
| 45 | |
| 46 | public function get_id(): TableId |
| 47 | { |
| 48 | return $this->id; |
| 49 | } |
| 50 | |
| 51 | public function get_labels(): Labels |
| 52 | { |
| 53 | return $this->labels; |
| 54 | } |
| 55 | |
| 56 | public function get_screen_id(): string |
| 57 | { |
| 58 | return $this->screen_id; |
| 59 | } |
| 60 | |
| 61 | public function is_network(): bool |
| 62 | { |
| 63 | return $this->network; |
| 64 | } |
| 65 | |
| 66 | public function get_attr_id(): string |
| 67 | { |
| 68 | return $this->attr_id; |
| 69 | } |
| 70 | |
| 71 | } |
| 72 |