1 | <?php |
||
29 | class Filter implements \OCP\Activity\IFilter { |
||
30 | |||
31 | private $l10n; |
||
32 | private $urlGenerator; |
||
33 | |||
34 | public function __construct( |
||
41 | |||
42 | /** |
||
43 | * @return string Lowercase a-z and underscore only identifier |
||
44 | * @since 11.0.0 |
||
45 | */ |
||
46 | public function getIdentifier() { |
||
49 | |||
50 | /** |
||
51 | * @return string A translated string |
||
52 | * @since 11.0.0 |
||
53 | */ |
||
54 | public function getName() { |
||
57 | |||
58 | /** |
||
59 | * @return int whether the filter should be rather on the top or bottom of |
||
60 | * the admin section. The filters are arranged in ascending order of the |
||
61 | * priority values. It is required to return a value between 0 and 100. |
||
62 | * @since 11.0.0 |
||
63 | */ |
||
64 | public function getPriority() { |
||
67 | |||
68 | /** |
||
69 | * @return string Full URL to an icon, empty string when none is given |
||
70 | * @since 11.0.0 |
||
71 | */ |
||
72 | public function getIcon() { |
||
75 | |||
76 | /** |
||
77 | * @param string[] $types |
||
78 | * @return string[] An array of allowed apps from which activities should be displayed |
||
79 | * @since 11.0.0 |
||
80 | */ |
||
81 | public function filterTypes(array $types) { |
||
84 | |||
85 | /** |
||
86 | * @return string[] An array of allowed apps from which activities should be displayed |
||
87 | * @since 11.0.0 |
||
88 | */ |
||
89 | public function allowedApps() { |
||
92 | } |
||
93 |