@@ -14,8 +14,8 @@ |
||
14 | 14 | */ |
15 | 15 | interface ResettableInterface |
16 | 16 | { |
17 | - /** |
|
18 | - * @return mixed |
|
19 | - */ |
|
20 | - public static function reset(); |
|
17 | + /** |
|
18 | + * @return mixed |
|
19 | + */ |
|
20 | + public static function reset(); |
|
21 | 21 | } |
@@ -5,12 +5,12 @@ |
||
5 | 5 | */ |
6 | 6 | interface EEI_Request_Stack_Core_App |
7 | 7 | { |
8 | - /** |
|
9 | - * gives the core app a chance to handle the response after the request stack has fully processed |
|
10 | - * |
|
11 | - * @deprecated 4.9.53 |
|
12 | - * @param EE_Request $request |
|
13 | - * @param EE_Response $response |
|
14 | - */ |
|
15 | - public function handle_response(EE_Request $request, EE_Response $response); |
|
8 | + /** |
|
9 | + * gives the core app a chance to handle the response after the request stack has fully processed |
|
10 | + * |
|
11 | + * @deprecated 4.9.53 |
|
12 | + * @param EE_Request $request |
|
13 | + * @param EE_Response $response |
|
14 | + */ |
|
15 | + public function handle_response(EE_Request $request, EE_Response $response); |
|
16 | 16 | } |
@@ -10,33 +10,33 @@ |
||
10 | 10 | */ |
11 | 11 | interface EEI_Repository extends EEI_Collection |
12 | 12 | { |
13 | - /** |
|
14 | - * persist |
|
15 | - * |
|
16 | - * used for persisting the current object ( ie: to the database, cache, session, etc ) |
|
17 | - * can be supplied with a "persistence callback" on a per method call basis, |
|
18 | - * or the $persist_method property can be set in the class constructor, |
|
19 | - * for providing how to persist an object such as session caching, etc... |
|
20 | - * an array of arguments can also be supplied that will be passed along to the object's persistence method |
|
21 | - * |
|
22 | - * @access public |
|
23 | - * @param string $persistence_callback name of method found on object that can be used for persisting the object |
|
24 | - * @param array $persistence_arguments arrays of arguments that will be passed to the object's persistence method |
|
25 | - * @return bool | int |
|
26 | - * @throws \EE_Error |
|
27 | - */ |
|
28 | - public function persist($persistence_callback = '', $persistence_arguments = array()); |
|
13 | + /** |
|
14 | + * persist |
|
15 | + * |
|
16 | + * used for persisting the current object ( ie: to the database, cache, session, etc ) |
|
17 | + * can be supplied with a "persistence callback" on a per method call basis, |
|
18 | + * or the $persist_method property can be set in the class constructor, |
|
19 | + * for providing how to persist an object such as session caching, etc... |
|
20 | + * an array of arguments can also be supplied that will be passed along to the object's persistence method |
|
21 | + * |
|
22 | + * @access public |
|
23 | + * @param string $persistence_callback name of method found on object that can be used for persisting the object |
|
24 | + * @param array $persistence_arguments arrays of arguments that will be passed to the object's persistence method |
|
25 | + * @return bool | int |
|
26 | + * @throws \EE_Error |
|
27 | + */ |
|
28 | + public function persist($persistence_callback = '', $persistence_arguments = array()); |
|
29 | 29 | |
30 | 30 | |
31 | 31 | |
32 | - /** |
|
33 | - * persist_all |
|
34 | - * |
|
35 | - * calls \EEI_Repository::persist() on all objects within the repository |
|
36 | - * |
|
37 | - * @access public |
|
38 | - * @param string $persistence_callback name of method found on object that can be used for persisting it |
|
39 | - * @return bool | int |
|
40 | - */ |
|
41 | - public function persist_all($persistence_callback = ''); |
|
32 | + /** |
|
33 | + * persist_all |
|
34 | + * |
|
35 | + * calls \EEI_Repository::persist() on all objects within the repository |
|
36 | + * |
|
37 | + * @access public |
|
38 | + * @param string $persistence_callback name of method found on object that can be used for persisting it |
|
39 | + * @return bool | int |
|
40 | + */ |
|
41 | + public function persist_all($persistence_callback = ''); |
|
42 | 42 | } |
@@ -10,13 +10,13 @@ |
||
10 | 10 | */ |
11 | 11 | interface EEI_Deletable |
12 | 12 | { |
13 | - /** |
|
14 | - * delete |
|
15 | - * |
|
16 | - * used for deleting the current object from the wherever the object is persisted ( ie: from the database, cache, session, etc ) |
|
17 | - * |
|
18 | - * @access public |
|
19 | - * @return bool | int |
|
20 | - */ |
|
21 | - public function delete(); |
|
13 | + /** |
|
14 | + * delete |
|
15 | + * |
|
16 | + * used for deleting the current object from the wherever the object is persisted ( ie: from the database, cache, session, etc ) |
|
17 | + * |
|
18 | + * @access public |
|
19 | + * @return bool | int |
|
20 | + */ |
|
21 | + public function delete(); |
|
22 | 22 | } |
@@ -10,9 +10,9 @@ |
||
10 | 10 | */ |
11 | 11 | interface EEI_Has_Sending_Messenger |
12 | 12 | { |
13 | - /** |
|
14 | - * Expect a EE_messenger object back that is serving as the sending messenger for a message. |
|
15 | - * @return EE_messenger |
|
16 | - */ |
|
17 | - public function sending_messenger(); |
|
13 | + /** |
|
14 | + * Expect a EE_messenger object back that is serving as the sending messenger for a message. |
|
15 | + * @return EE_messenger |
|
16 | + */ |
|
17 | + public function sending_messenger(); |
|
18 | 18 | } |
@@ -16,98 +16,98 @@ |
||
16 | 16 | */ |
17 | 17 | abstract class EE_Object_Repository extends EE_Object_Collection implements EEI_Repository |
18 | 18 | { |
19 | - /** |
|
20 | - * default persist method called on repository objects if none supplied |
|
21 | - * |
|
22 | - * @type string $persist_method |
|
23 | - */ |
|
24 | - protected $persist_method; |
|
19 | + /** |
|
20 | + * default persist method called on repository objects if none supplied |
|
21 | + * |
|
22 | + * @type string $persist_method |
|
23 | + */ |
|
24 | + protected $persist_method; |
|
25 | 25 | |
26 | 26 | |
27 | - /** |
|
28 | - * _call_user_func_array_on_current |
|
29 | - * |
|
30 | - * calls the supplied callback method name on the current repository object, |
|
31 | - * an array of arguments can also be supplied that will be passed along to the callback method, |
|
32 | - * where each element of the $arguments array corresponds to a parameter for the callback method |
|
33 | - * PLZ NOTE: if the first argument of the callback requires an array, for example array( 'key' => 'value' ) |
|
34 | - * then $arguments needs to be a DOUBLE array ie: array( array( 'key' => 'value' ) ) |
|
35 | - * |
|
36 | - * @access public |
|
37 | - * @param string $callback name of method found on object to be called. |
|
38 | - * @param array $arguments arrays of arguments that will be passed to the object's callback method |
|
39 | - * @return bool | int |
|
40 | - */ |
|
41 | - protected function _call_user_func_array_on_current($callback = '', $arguments = array()) |
|
42 | - { |
|
43 | - if ($callback !== '' && method_exists($this->current(), $callback)) { |
|
44 | - return call_user_func_array(array($this->current(), $callback), $arguments); |
|
45 | - } |
|
46 | - return false; |
|
47 | - } |
|
27 | + /** |
|
28 | + * _call_user_func_array_on_current |
|
29 | + * |
|
30 | + * calls the supplied callback method name on the current repository object, |
|
31 | + * an array of arguments can also be supplied that will be passed along to the callback method, |
|
32 | + * where each element of the $arguments array corresponds to a parameter for the callback method |
|
33 | + * PLZ NOTE: if the first argument of the callback requires an array, for example array( 'key' => 'value' ) |
|
34 | + * then $arguments needs to be a DOUBLE array ie: array( array( 'key' => 'value' ) ) |
|
35 | + * |
|
36 | + * @access public |
|
37 | + * @param string $callback name of method found on object to be called. |
|
38 | + * @param array $arguments arrays of arguments that will be passed to the object's callback method |
|
39 | + * @return bool | int |
|
40 | + */ |
|
41 | + protected function _call_user_func_array_on_current($callback = '', $arguments = array()) |
|
42 | + { |
|
43 | + if ($callback !== '' && method_exists($this->current(), $callback)) { |
|
44 | + return call_user_func_array(array($this->current(), $callback), $arguments); |
|
45 | + } |
|
46 | + return false; |
|
47 | + } |
|
48 | 48 | |
49 | 49 | |
50 | - /** |
|
51 | - * _call_user_func_on_all |
|
52 | - * |
|
53 | - * calls the supplied callback method name on ALL repository objects, |
|
54 | - * |
|
55 | - * @access public |
|
56 | - * @param string $callback name of method found on repository objects to be called |
|
57 | - * @return bool | int |
|
58 | - */ |
|
59 | - protected function _call_user_func_on_all($callback = '') |
|
60 | - { |
|
61 | - $success = true; |
|
62 | - if ($this->valid()) { |
|
63 | - $this->rewind(); |
|
64 | - while ($this->valid()) { |
|
65 | - // any negative result will toggle success to false |
|
66 | - $success = $this->_call_user_func_array_on_current($callback) ? $success : false; |
|
67 | - $this->next(); |
|
68 | - } |
|
69 | - $this->rewind(); |
|
70 | - } |
|
71 | - return $success; |
|
72 | - } |
|
50 | + /** |
|
51 | + * _call_user_func_on_all |
|
52 | + * |
|
53 | + * calls the supplied callback method name on ALL repository objects, |
|
54 | + * |
|
55 | + * @access public |
|
56 | + * @param string $callback name of method found on repository objects to be called |
|
57 | + * @return bool | int |
|
58 | + */ |
|
59 | + protected function _call_user_func_on_all($callback = '') |
|
60 | + { |
|
61 | + $success = true; |
|
62 | + if ($this->valid()) { |
|
63 | + $this->rewind(); |
|
64 | + while ($this->valid()) { |
|
65 | + // any negative result will toggle success to false |
|
66 | + $success = $this->_call_user_func_array_on_current($callback) ? $success : false; |
|
67 | + $this->next(); |
|
68 | + } |
|
69 | + $this->rewind(); |
|
70 | + } |
|
71 | + return $success; |
|
72 | + } |
|
73 | 73 | |
74 | 74 | |
75 | - /** |
|
76 | - * persist |
|
77 | - * |
|
78 | - * primarily used for saving EE_Base_Class classes to the database, |
|
79 | - * but can be supplied with a "persistence callback" that can be used for classes that are not instances of |
|
80 | - * EE_Base_Class, or for providing alternate ways to persist an object such as session caching, etc... an array of |
|
81 | - * arguments can also be supplied that will be passed along to the object's persistence method |
|
82 | - * |
|
83 | - * @access public |
|
84 | - * @param string $persistence_callback name of method found on object that can |
|
85 | - * be used for persisting the object |
|
86 | - * defaults to |
|
87 | - * EE_Object_Repository::$persist_method |
|
88 | - * @param array $persistence_arguments arrays of arguments that will be passed |
|
89 | - * to the object's persistence method |
|
90 | - * @return bool | int |
|
91 | - */ |
|
92 | - public function persist($persistence_callback = '', $persistence_arguments = array()) |
|
93 | - { |
|
94 | - $persistence_callback = ! empty($persistence_callback) ? $persistence_callback : $this->persist_method; |
|
95 | - return $this->_call_user_func_array_on_current($persistence_callback, $persistence_arguments); |
|
96 | - } |
|
75 | + /** |
|
76 | + * persist |
|
77 | + * |
|
78 | + * primarily used for saving EE_Base_Class classes to the database, |
|
79 | + * but can be supplied with a "persistence callback" that can be used for classes that are not instances of |
|
80 | + * EE_Base_Class, or for providing alternate ways to persist an object such as session caching, etc... an array of |
|
81 | + * arguments can also be supplied that will be passed along to the object's persistence method |
|
82 | + * |
|
83 | + * @access public |
|
84 | + * @param string $persistence_callback name of method found on object that can |
|
85 | + * be used for persisting the object |
|
86 | + * defaults to |
|
87 | + * EE_Object_Repository::$persist_method |
|
88 | + * @param array $persistence_arguments arrays of arguments that will be passed |
|
89 | + * to the object's persistence method |
|
90 | + * @return bool | int |
|
91 | + */ |
|
92 | + public function persist($persistence_callback = '', $persistence_arguments = array()) |
|
93 | + { |
|
94 | + $persistence_callback = ! empty($persistence_callback) ? $persistence_callback : $this->persist_method; |
|
95 | + return $this->_call_user_func_array_on_current($persistence_callback, $persistence_arguments); |
|
96 | + } |
|
97 | 97 | |
98 | 98 | |
99 | - /** |
|
100 | - * persist_all |
|
101 | - * |
|
102 | - * calls \EE_Object_Repository::persist() on all objects within the repository |
|
103 | - * |
|
104 | - * @access public |
|
105 | - * @param string $persistence_callback name of method found on object that can be used for persisting the object |
|
106 | - * @return bool | int |
|
107 | - */ |
|
108 | - public function persist_all($persistence_callback = '') |
|
109 | - { |
|
110 | - $persistence_callback = ! empty($persistence_callback) ? $persistence_callback : $this->persist_method; |
|
111 | - return $this->_call_user_func_on_all($persistence_callback); |
|
112 | - } |
|
99 | + /** |
|
100 | + * persist_all |
|
101 | + * |
|
102 | + * calls \EE_Object_Repository::persist() on all objects within the repository |
|
103 | + * |
|
104 | + * @access public |
|
105 | + * @param string $persistence_callback name of method found on object that can be used for persisting the object |
|
106 | + * @return bool | int |
|
107 | + */ |
|
108 | + public function persist_all($persistence_callback = '') |
|
109 | + { |
|
110 | + $persistence_callback = ! empty($persistence_callback) ? $persistence_callback : $this->persist_method; |
|
111 | + return $this->_call_user_func_on_all($persistence_callback); |
|
112 | + } |
|
113 | 113 | } |
@@ -11,138 +11,138 @@ |
||
11 | 11 | */ |
12 | 12 | class PostShortcodeTracking |
13 | 13 | { |
14 | - /** |
|
15 | - * @deprecated 4.9.26 |
|
16 | - * @return void |
|
17 | - */ |
|
18 | - public static function set_hooks_admin() |
|
19 | - { |
|
20 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
21 | - } |
|
22 | - |
|
23 | - |
|
24 | - /** |
|
25 | - * @deprecated 4.9.26 |
|
26 | - * @param $post_ID |
|
27 | - * @param $post |
|
28 | - * @return void |
|
29 | - */ |
|
30 | - public static function parse_post_content_on_save($post_ID, $post) |
|
31 | - { |
|
32 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
33 | - } |
|
34 | - |
|
35 | - |
|
36 | - /** |
|
37 | - * @deprecated 4.9.26 |
|
38 | - * @param $page_for_posts |
|
39 | - * @return void |
|
40 | - */ |
|
41 | - protected static function set_post_shortcodes_for_posts_page($page_for_posts) |
|
42 | - { |
|
43 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
44 | - } |
|
45 | - |
|
46 | - |
|
47 | - /** |
|
48 | - * @deprecated 4.9.26 |
|
49 | - * @param $page_for_posts |
|
50 | - * @param $EES_Shortcode |
|
51 | - * @param $post_ID |
|
52 | - * @return void |
|
53 | - */ |
|
54 | - protected static function set_post_shortcode_for_posts_page($page_for_posts, $EES_Shortcode, $post_ID) |
|
55 | - { |
|
56 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
57 | - } |
|
58 | - |
|
59 | - |
|
60 | - /** |
|
61 | - * @deprecated 4.9.26 |
|
62 | - * @param $ID |
|
63 | - * @return void |
|
64 | - */ |
|
65 | - public static function unset_post_shortcodes_on_delete($ID) |
|
66 | - { |
|
67 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
68 | - } |
|
69 | - |
|
70 | - |
|
71 | - /** |
|
72 | - * @deprecated 4.9.26 |
|
73 | - * @param $ID |
|
74 | - * @param $shortcode_class |
|
75 | - * @param $shortcode_posts |
|
76 | - * @param $page_for_posts |
|
77 | - * @param bool $update_post_shortcodes |
|
78 | - * @return void |
|
79 | - */ |
|
80 | - protected static function unset_posts_page_shortcode_for_post( |
|
81 | - $ID, |
|
82 | - $shortcode_class, |
|
83 | - $shortcode_posts, |
|
84 | - $page_for_posts, |
|
85 | - $update_post_shortcodes = false |
|
86 | - ) { |
|
87 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
88 | - } |
|
89 | - |
|
90 | - |
|
91 | - /** |
|
92 | - * @deprecated 4.9.26 |
|
93 | - * @param string $page_for_posts |
|
94 | - * @return void |
|
95 | - */ |
|
96 | - public static function update_post_shortcodes($page_for_posts = '') |
|
97 | - { |
|
98 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
99 | - } |
|
100 | - |
|
101 | - |
|
102 | - /** |
|
103 | - * @deprecated 4.9.26 |
|
104 | - * @param $option |
|
105 | - * @param $value |
|
106 | - * @return void |
|
107 | - */ |
|
108 | - public static function reset_page_for_posts_on_initial_set($option, $value) |
|
109 | - { |
|
110 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
111 | - } |
|
112 | - |
|
113 | - |
|
114 | - /** |
|
115 | - * @deprecated 4.9.26 |
|
116 | - * @param $option |
|
117 | - * @param string $old_value |
|
118 | - * @param string $value |
|
119 | - * @return void |
|
120 | - */ |
|
121 | - public static function reset_page_for_posts_on_change($option, $old_value = '', $value = '') |
|
122 | - { |
|
123 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
124 | - } |
|
125 | - |
|
126 | - |
|
127 | - /** |
|
128 | - * @deprecated 4.9.26 |
|
129 | - * @param $option |
|
130 | - * @return void |
|
131 | - */ |
|
132 | - public static function reset_page_for_posts_on_delete($option) |
|
133 | - { |
|
134 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
135 | - } |
|
136 | - |
|
137 | - |
|
138 | - /** |
|
139 | - * @deprecated 4.9.26 |
|
140 | - * @param $shortcodes |
|
141 | - * @param bool $index_results |
|
142 | - * @return void |
|
143 | - */ |
|
144 | - public static function get_post_ids_for_shortcode($shortcodes, $index_results = true) |
|
145 | - { |
|
146 | - \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
147 | - } |
|
14 | + /** |
|
15 | + * @deprecated 4.9.26 |
|
16 | + * @return void |
|
17 | + */ |
|
18 | + public static function set_hooks_admin() |
|
19 | + { |
|
20 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
21 | + } |
|
22 | + |
|
23 | + |
|
24 | + /** |
|
25 | + * @deprecated 4.9.26 |
|
26 | + * @param $post_ID |
|
27 | + * @param $post |
|
28 | + * @return void |
|
29 | + */ |
|
30 | + public static function parse_post_content_on_save($post_ID, $post) |
|
31 | + { |
|
32 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
33 | + } |
|
34 | + |
|
35 | + |
|
36 | + /** |
|
37 | + * @deprecated 4.9.26 |
|
38 | + * @param $page_for_posts |
|
39 | + * @return void |
|
40 | + */ |
|
41 | + protected static function set_post_shortcodes_for_posts_page($page_for_posts) |
|
42 | + { |
|
43 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
44 | + } |
|
45 | + |
|
46 | + |
|
47 | + /** |
|
48 | + * @deprecated 4.9.26 |
|
49 | + * @param $page_for_posts |
|
50 | + * @param $EES_Shortcode |
|
51 | + * @param $post_ID |
|
52 | + * @return void |
|
53 | + */ |
|
54 | + protected static function set_post_shortcode_for_posts_page($page_for_posts, $EES_Shortcode, $post_ID) |
|
55 | + { |
|
56 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
57 | + } |
|
58 | + |
|
59 | + |
|
60 | + /** |
|
61 | + * @deprecated 4.9.26 |
|
62 | + * @param $ID |
|
63 | + * @return void |
|
64 | + */ |
|
65 | + public static function unset_post_shortcodes_on_delete($ID) |
|
66 | + { |
|
67 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
68 | + } |
|
69 | + |
|
70 | + |
|
71 | + /** |
|
72 | + * @deprecated 4.9.26 |
|
73 | + * @param $ID |
|
74 | + * @param $shortcode_class |
|
75 | + * @param $shortcode_posts |
|
76 | + * @param $page_for_posts |
|
77 | + * @param bool $update_post_shortcodes |
|
78 | + * @return void |
|
79 | + */ |
|
80 | + protected static function unset_posts_page_shortcode_for_post( |
|
81 | + $ID, |
|
82 | + $shortcode_class, |
|
83 | + $shortcode_posts, |
|
84 | + $page_for_posts, |
|
85 | + $update_post_shortcodes = false |
|
86 | + ) { |
|
87 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
88 | + } |
|
89 | + |
|
90 | + |
|
91 | + /** |
|
92 | + * @deprecated 4.9.26 |
|
93 | + * @param string $page_for_posts |
|
94 | + * @return void |
|
95 | + */ |
|
96 | + public static function update_post_shortcodes($page_for_posts = '') |
|
97 | + { |
|
98 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
99 | + } |
|
100 | + |
|
101 | + |
|
102 | + /** |
|
103 | + * @deprecated 4.9.26 |
|
104 | + * @param $option |
|
105 | + * @param $value |
|
106 | + * @return void |
|
107 | + */ |
|
108 | + public static function reset_page_for_posts_on_initial_set($option, $value) |
|
109 | + { |
|
110 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
111 | + } |
|
112 | + |
|
113 | + |
|
114 | + /** |
|
115 | + * @deprecated 4.9.26 |
|
116 | + * @param $option |
|
117 | + * @param string $old_value |
|
118 | + * @param string $value |
|
119 | + * @return void |
|
120 | + */ |
|
121 | + public static function reset_page_for_posts_on_change($option, $old_value = '', $value = '') |
|
122 | + { |
|
123 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
124 | + } |
|
125 | + |
|
126 | + |
|
127 | + /** |
|
128 | + * @deprecated 4.9.26 |
|
129 | + * @param $option |
|
130 | + * @return void |
|
131 | + */ |
|
132 | + public static function reset_page_for_posts_on_delete($option) |
|
133 | + { |
|
134 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
135 | + } |
|
136 | + |
|
137 | + |
|
138 | + /** |
|
139 | + * @deprecated 4.9.26 |
|
140 | + * @param $shortcodes |
|
141 | + * @param bool $index_results |
|
142 | + * @return void |
|
143 | + */ |
|
144 | + public static function get_post_ids_for_shortcode($shortcodes, $index_results = true) |
|
145 | + { |
|
146 | + \EE_Error::doing_it_wrong(__METHOD__, esc_html__('Usage is deprecated.', 'event_espresso'), '4.9.26'); |
|
147 | + } |
|
148 | 148 | } |
@@ -14,66 +14,66 @@ |
||
14 | 14 | */ |
15 | 15 | class IpnException extends \LogicException |
16 | 16 | { |
17 | - const DUPLICATE = 1; |
|
17 | + const DUPLICATE = 1; |
|
18 | 18 | |
19 | - const UNABLE_TO_VALIDATE = 2; |
|
19 | + const UNABLE_TO_VALIDATE = 2; |
|
20 | 20 | |
21 | - const UNSUPPORTED = 3; |
|
21 | + const UNSUPPORTED = 3; |
|
22 | 22 | |
23 | - /** |
|
24 | - * @var \EE_Payment |
|
25 | - */ |
|
26 | - protected $payment; |
|
23 | + /** |
|
24 | + * @var \EE_Payment |
|
25 | + */ |
|
26 | + protected $payment; |
|
27 | 27 | |
28 | - /** |
|
29 | - * @var mixed IPN data, usually an array or object |
|
30 | - */ |
|
31 | - protected $ipn_data; |
|
28 | + /** |
|
29 | + * @var mixed IPN data, usually an array or object |
|
30 | + */ |
|
31 | + protected $ipn_data; |
|
32 | 32 | |
33 | 33 | |
34 | - public function __construct( |
|
35 | - $message, |
|
36 | - $code = 0, |
|
37 | - \Exception $previous = null, |
|
38 | - \EE_Payment $payment = null, |
|
39 | - $ipn_data = array() |
|
40 | - ) { |
|
41 | - parent::__construct($message, $code, $previous); |
|
42 | - $this->payment = $payment; |
|
43 | - $this->ipn_data = $ipn_data; |
|
44 | - } |
|
34 | + public function __construct( |
|
35 | + $message, |
|
36 | + $code = 0, |
|
37 | + \Exception $previous = null, |
|
38 | + \EE_Payment $payment = null, |
|
39 | + $ipn_data = array() |
|
40 | + ) { |
|
41 | + parent::__construct($message, $code, $previous); |
|
42 | + $this->payment = $payment; |
|
43 | + $this->ipn_data = $ipn_data; |
|
44 | + } |
|
45 | 45 | |
46 | 46 | |
47 | - /** |
|
48 | - * Gets the payment associated with this IPN, if known |
|
49 | - * |
|
50 | - * @return \EE_Payment |
|
51 | - */ |
|
52 | - public function getPayment() |
|
53 | - { |
|
54 | - return $this->payment; |
|
55 | - } |
|
47 | + /** |
|
48 | + * Gets the payment associated with this IPN, if known |
|
49 | + * |
|
50 | + * @return \EE_Payment |
|
51 | + */ |
|
52 | + public function getPayment() |
|
53 | + { |
|
54 | + return $this->payment; |
|
55 | + } |
|
56 | 56 | |
57 | 57 | |
58 | - /** |
|
59 | - * Returns the payment's properties as an array (even if there is no payment, in which case it's an empty array) |
|
60 | - * |
|
61 | - * @return array |
|
62 | - * @throws \EE_Error |
|
63 | - */ |
|
64 | - public function getPaymentProperties() |
|
65 | - { |
|
66 | - return $this->getPayment() instanceof \EE_Payment ? $this->getPayment()->model_field_array() : array(); |
|
67 | - } |
|
58 | + /** |
|
59 | + * Returns the payment's properties as an array (even if there is no payment, in which case it's an empty array) |
|
60 | + * |
|
61 | + * @return array |
|
62 | + * @throws \EE_Error |
|
63 | + */ |
|
64 | + public function getPaymentProperties() |
|
65 | + { |
|
66 | + return $this->getPayment() instanceof \EE_Payment ? $this->getPayment()->model_field_array() : array(); |
|
67 | + } |
|
68 | 68 | |
69 | 69 | |
70 | - /** |
|
71 | - * Returns an array, object, or string, however, the IPN data was received |
|
72 | - * |
|
73 | - * @return mixed |
|
74 | - */ |
|
75 | - public function getIpnData() |
|
76 | - { |
|
77 | - return $this->ipn_data; |
|
78 | - } |
|
70 | + /** |
|
71 | + * Returns an array, object, or string, however, the IPN data was received |
|
72 | + * |
|
73 | + * @return mixed |
|
74 | + */ |
|
75 | + public function getIpnData() |
|
76 | + { |
|
77 | + return $this->ipn_data; |
|
78 | + } |
|
79 | 79 | } |
@@ -14,27 +14,27 @@ |
||
14 | 14 | */ |
15 | 15 | class InvalidFilePathException extends InvalidArgumentException |
16 | 16 | { |
17 | - /** |
|
18 | - * InvalidClassException constructor. |
|
19 | - * |
|
20 | - * @param string $file_path |
|
21 | - * @param string $message |
|
22 | - * @param int $code |
|
23 | - * @param \Exception $previous |
|
24 | - */ |
|
25 | - public function __construct($file_path, $message = '', $code = 0, \Exception $previous = null) |
|
26 | - { |
|
27 | - if (empty($message)) { |
|
28 | - $message = sprintf( |
|
29 | - esc_html__( |
|
30 | - 'The "%1$s" file is either missing or could not be read due to permissions. Please ensure that the following path is correct and verify that the file permissions are correct:%2$s %3$s', |
|
31 | - 'event_espresso' |
|
32 | - ), |
|
33 | - basename($file_path), |
|
34 | - '<br />', |
|
35 | - $file_path |
|
36 | - ); |
|
37 | - } |
|
38 | - parent::__construct($message, $code, $previous); |
|
39 | - } |
|
17 | + /** |
|
18 | + * InvalidClassException constructor. |
|
19 | + * |
|
20 | + * @param string $file_path |
|
21 | + * @param string $message |
|
22 | + * @param int $code |
|
23 | + * @param \Exception $previous |
|
24 | + */ |
|
25 | + public function __construct($file_path, $message = '', $code = 0, \Exception $previous = null) |
|
26 | + { |
|
27 | + if (empty($message)) { |
|
28 | + $message = sprintf( |
|
29 | + esc_html__( |
|
30 | + 'The "%1$s" file is either missing or could not be read due to permissions. Please ensure that the following path is correct and verify that the file permissions are correct:%2$s %3$s', |
|
31 | + 'event_espresso' |
|
32 | + ), |
|
33 | + basename($file_path), |
|
34 | + '<br />', |
|
35 | + $file_path |
|
36 | + ); |
|
37 | + } |
|
38 | + parent::__construct($message, $code, $previous); |
|
39 | + } |
|
40 | 40 | } |