PluginProbe
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF / trunk
Imagify Image Optimization: Optimize Images | Compress & Convert to WebP/AVIF vtrunk
2.3.4 2.3.3 2.3.2 2.3.1 2.3.0 2.2.9 2.2.8 trunk 1.10 1.3.3 1.3.4 1.3.5 1.3.5.1 1.3.5.2 1.3.6 1.3.6.1 1.4 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.6 1.4.7 1.5 All 103 releases
← All changes | classes/Context/ContextInterface.php +0 -24 1.10 → trunk View file →
@@ -1,9 +1,7 @@
1 1 <?php
2 2 namespace Imagify\Context;
3 3
4 -defined( 'ABSPATH' ) || die( 'Cheatin’ uh?' );
5 -
6 4 /**
7 5 * Interface to use for contexts.
8 6 *
9 7 * @since 1.9
@@ -14,9 +12,8 @@
14 12 /**
15 13 * Get the main Instance.
16 14 *
17 15 * @since 1.9
18 - * @access protected
19 16 * @author Grégory Viguier
20 17 *
21 18 * @return object Main instance.
22 19 */
@@ -25,9 +22,8 @@
25 22 /**
26 23 * Get the context "short name".
27 24 *
28 25 * @since 1.9
29 - * @access public
30 26 * @author Grégory Viguier
31 27 *
32 28 * @return string
33 29 */
@@ -36,9 +32,8 @@
36 32 /**
37 33 * Tell if the context is network-wide.
38 34 *
39 35 * @since 1.9
40 - * @access public
41 36 * @author Grégory Viguier
42 37 *
43 38 * @return bool
44 39 */
@@ -47,9 +42,8 @@
47 42 /**
48 43 * Get the type of files this context allows.
49 44 *
50 45 * @since 1.9
51 - * @access protected
52 46 * @see imagify_get_mime_types()
53 47 * @author Grégory Viguier
54 48 *
55 49 * @return string Possible values are:
@@ -62,9 +56,8 @@
62 56 /**
63 57 * Get the thumbnail sizes for this context, except the full size.
64 58 *
65 59 * @since 1.9
66 - * @access public
67 60 * @author Grégory Viguier
68 61 *
69 62 * @return array {
70 63 * Data for the currently registered thumbnail sizes.
@@ -82,9 +75,8 @@
82 75 * Get images max width for this context. This is used when resizing.
83 76 * 0 means to not resize.
84 77 *
85 78 * @since 1.9.8
86 - * @access public
87 79 * @author Grégory Viguier
88 80 *
89 81 * @return int
90 82 */
@@ -93,9 +85,8 @@
93 85 /**
94 86 * Tell if the optimization process is allowed resize in this context.
95 87 *
96 88 * @since 1.9
97 - * @access public
98 89 * @author Grégory Viguier
99 90 *
100 91 * @return bool
101 92 */
@@ -104,9 +95,8 @@
104 95 /**
105 96 * Tell if the optimization process is allowed to backup in this context.
106 97 *
107 98 * @since 1.9
108 - * @access public
109 99 * @author Grégory Viguier
110 100 *
111 101 * @return bool
112 102 */
@@ -112,23 +102,11 @@
112 102 */
113 103 public function can_backup();
114 104
115 105 /**
116 - * Tell if the optimization process is allowed to keep exif in this context.
117 - *
118 - * @since 1.9
119 - * @access public
120 - * @author Grégory Viguier
121 - *
122 - * @return bool
123 - */
124 - public function can_keep_exif();
125 -
126 - /**
127 106 * Tell if the current user is allowed to operate Imagify in this context.
128 107 *
129 108 * @since 1.9
130 - * @access public
131 109 * @author Grégory Viguier
132 110 *
133 111 * @param string $describer Capacity describer. See $this->get_capacity() for possible values. Can also be a "real" user capacity.
134 112 * @param int $media_id A media ID.
@@ -139,9 +117,8 @@
139 117 /**
140 118 * Tell if a user is allowed to operate Imagify in this context.
141 119 *
142 120 * @since 1.9
143 - * @access public
144 121 * @author Grégory Viguier
145 122 *
146 123 * @param int $user_id A user ID.
147 124 * @param string $describer Capacity describer. See $this->get_capacity() for possible values. Can also be a "real" user capacity.
@@ -154,9 +131,8 @@
154 131 * Get user capacity to operate Imagify in this context.
155 132 *
156 133 * @since 1.9
157 134 * @since 1.9 The describer 'auto-optimize' is not used anymore.
158 - * @access public
159 135 * @author Grégory Viguier
160 136 *
161 137 * @param string $describer Capacity describer. Possible values are like 'manage', 'bulk-optimize', 'manual-optimize', 'auto-optimize'.
162 138 * @return string