api.php
1.95 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?php
use AC\Request;
use ACP\Bookmark\SegmentRepository;
use ACP\Editing;
use ACP\Export;
use ACP\Filtering;
use ACP\Search;
use ACP\Sorting;
/**
* @return ACP\AdminColumnsPro
*/
function ACP() {
return ACP\AdminColumnsPro::instance();
}
/**
* @return string
* @since 4.4
*/
function acp_support_email() {
return 'support@admincolumns.com';
}
/**
* @return bool
* @deprecated 6.0
* @since 5.1
*/
function acp_sorting_show_all_results() {
_deprecated_function( __FUNCTION__, '6.0' );
return true;
}
/**
* @deprecated 5.7
*/
function acp_get_license_page_url() {
_deprecated_function( __FUNCTION__, '5.7' );
}
/**
* @return Filtering\Helper
* @since 4.2
* @deprecated 4.5
*/
function acp_filtering_helper() {
_deprecated_function( __FUNCTION__, '4.5', 'ACP\Filtering\Helper' );
return new Filtering\Helper();
}
/**
* @deprecated 4.5
*/
function acp_editing_helper() {
_deprecated_function( __FUNCTION__, '4.5' );
}
/**
* @since 4.0
* @deprecated 5.1
*/
function acp_editing() {
_deprecated_function( __FUNCTION__, '5.1' );
return new Editing\Addon( AC()->get_storage(), ACP()->get_location(), new Request() );
}
/**
* @deprecated 5.1
* @since 4.0
*/
function acp_filtering() {
_deprecated_function( __FUNCTION__, '5.1' );
return new Filtering\Addon( AC()->get_storage(), ACP()->get_location(), new Request() );
}
/**
* @deprecated 5.1
* @since 4.0
*/
function acp_sorting() {
_deprecated_function( __FUNCTION__, '5.1' );
return new Sorting\Addon(
AC()->get_storage(),
ACP()->get_location(),
new SegmentRepository()
);
}
/**
* @deprecated 5.1
*/
function ac_addon_export() {
_deprecated_function( __FUNCTION__, '5.1' );
return new Export\Addon( ACP()->get_location(), AC()->get_storage() );
}
/**
* @deprecated 5.1
*/
function ac_addon_search() {
_deprecated_function( __FUNCTION__, '5.1' );
return new Search\Addon(
AC()->get_storage(),
ACP()->get_location(),
new SegmentRepository()
);
}