PageTemplate.php
891 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
<?php
namespace ACP\Column\Post;
use AC;
use ACP\ConditionalFormat;
use ACP\Editing;
use ACP\Filtering;
use ACP\Search;
use ACP\Sorting;
/**
* @since 2.0
*/
class PageTemplate extends AC\Column\Post\PageTemplate
implements Filtering\Filterable, Sorting\Sortable, Editing\Editable, Search\Searchable, ConditionalFormat\Formattable {
use ConditionalFormat\ConditionalFormatTrait;
public function sorting() {
return new Sorting\Model\Post\PageTemplate( $this->get_post_type(), $this->get_meta_key() );
}
public function editing() {
if ( ! $this->get_page_templates() ) {
return false;
}
return new Editing\Service\Post\PageTemplate( $this->get_post_type() );
}
public function filtering() {
return new Filtering\Model\Post\PageTemplate( $this );
}
public function search() {
return new Search\Comparison\Post\PageTemplate( $this->get_page_templates() );
}
}