PluginProbe
Visualizer – Tables & Charts Manager with Built-in AI Generator / 1.7.0
Visualizer – Tables & Charts Manager with Built-in AI Generator v1.7.0
4.0.8 4.0.7 4.0.6 4.0.5 4.0.4 4.0.3 3.0.5 3.0.6 3.0.7 3.0.8 3.0.9 3.1.0 3.1.1 3.1.2 3.1.3 3.10.0 3.10.1 3.10.10 3.10.11 3.10.12 3.10.13 3.10.14 3.10.15 3.10.2 3.10.3 All 149 releases
← All changes | classes/Visualizer/Module.php +12 -11 1.6.61.7.0 View file →
@@ -18,9 +18,8 @@
18 18 // | MA 02110-1301 USA |
19 19 // +----------------------------------------------------------------------+
20 20 // | Author: Eugene Manuilov <eugene@manuilov.org> |
21 21 // +----------------------------------------------------------------------+
22 -
23 22 /**
24 23 * Base class for all modules. Implements routine methods required by all modules.
25 24 *
26 25 * @category Visualizer
@@ -74,13 +73,14 @@
74 73 *
75 74 * @access protected
76 75 * @param string $tag The name of the action to which the $method is hooked.
77 76 * @param string $method The name of the method to be called.
78 - * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
79 - * @param int $accepted_args optional. The number of arguments the function accept (default 1).
77 + * @param bool $methodClass The root of the method.
78 + * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
79 + * @param int $accepted_args optional. The number of arguments the function accept (default 1).
80 80 * @return Visualizer_Module
81 81 */
82 - protected function _addAction( $tag, $method, $methodClass=NULL, $priority = 10, $accepted_args = 1 ) {
82 + protected function _addAction( $tag, $method, $methodClass = null, $priority = 10, $accepted_args = 1 ) {
83 83 add_action( $tag, array( $methodClass ? $methodClass : $this, $method ), $priority, $accepted_args );
84 84 return $this;
85 85 }
86 86
@@ -89,15 +89,16 @@
89 89 *
90 90 * @since 1.0.0
91 91 *
92 92 * @access public
93 - * @param string $tag The name of the AJAX action to which the $method is hooked.
94 - * @param string $method Optional. The name of the method to be called. If the name of the method is not provided, tag name will be used as method name.
93 + * @param string $tag The name of the AJAX action to which the $method is hooked.
94 + * @param string $method Optional. The name of the method to be called. If the name of the method is not provided, tag name will be used as method name.
95 + * @param bool $methodClass The root of the method.
95 96 * @param boolean $private Optional. Determines if we should register hook for logged in users.
96 97 * @param boolean $public Optional. Determines if we should register hook for not logged in users.
97 98 * @return Visualizer_Module
98 99 */
99 - protected function _addAjaxAction( $tag, $method = '', $methodClass=NULL, $private = true, $public = false ) {
100 + protected function _addAjaxAction( $tag, $method = '', $methodClass = null, $private = true, $public = false ) {
100 101 if ( $private ) {
101 102 $this->_addAction( 'wp_ajax_' . $tag, $method, $methodClass );
102 103 }
103 104
@@ -115,11 +116,11 @@
115 116 * @uses add_filter() To register filter hook.
116 117 *
117 118 * @access protected
118 119 * @param string $tag The name of the filter to hook the $method to.
119 - * @param type $method The name of the method to be called when the filter is applied.
120 - * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
121 - * @param int $accepted_args optional. The number of arguments the function accept (default 1).
120 + * @param type $method The name of the method to be called when the filter is applied.
121 + * @param int $priority optional. Used to specify the order in which the functions associated with a particular action are executed (default: 10). Lower numbers correspond with earlier execution, and functions with the same priority are executed in the order in which they were added to the action.
122 + * @param int $accepted_args optional. The number of arguments the function accept (default 1).
122 123 * @return Visualizer_Module
123 124 */
124 125 protected function _addFilter( $tag, $method, $priority = 10, $accepted_args = 1 ) {
125 126 add_filter( $tag, array( $this, $method ), $priority, $accepted_args );
@@ -141,5 +142,5 @@
141 142 add_shortcode( $tag, array( $this, $method ) );
142 143 return $this;
143 144 }
144 145
145 -}
146 +}