Media.php
999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
namespace ACP\ListScreen;
use AC;
use ACP\Column;
use ACP\Editing;
use ACP\Export;
use ACP\Filtering;
use ACP\Sorting;
use ReflectionException;
class Media extends AC\ListScreen\Media
implements Sorting\ListScreen, Editing\ListScreen, Filtering\ListScreen, Export\ListScreen {
public function sorting( $model ) {
return new Sorting\Strategy\Media( $model );
}
public function editing() {
return new Editing\Strategy\Post( $this->get_post_type() );
}
public function filtering( $model ) {
return new Filtering\Strategy\Post( $model );
}
public function export() {
return new Export\Strategy\Post( $this );
}
/**
* @throws ReflectionException
*/
protected function register_column_types() {
parent::register_column_types();
$this->register_column_type( new Column\CustomField );
$this->register_column_type( new Column\Actions );
$this->register_column_type( new Column\Post\TitleRaw );
$this->register_column_types_from_dir( 'ACP\Column\Media' );
}
}