|
@@ 851-855 (lines=5) @@
|
| 848 |
|
*/ |
| 849 |
|
public function api1_query($user, $module, $function, $args = array() ) |
| 850 |
|
{ |
| 851 |
|
if ( !isset($module) || !isset($function) || !isset($user) ) { |
| 852 |
|
error_log("api1_query requires that a module and function are passed to it"); |
| 853 |
|
|
| 854 |
|
return false; |
| 855 |
|
} |
| 856 |
|
|
| 857 |
|
if (!is_array($args)) { |
| 858 |
|
error_log('api1_query requires that it is passed an array as the 4th parameter'); |
|
@@ 907-911 (lines=5) @@
|
| 904 |
|
|
| 905 |
|
public function api2_query($user, $module, $function, $args = array()) |
| 906 |
|
{ |
| 907 |
|
if (!isset($user) || !isset($module) || !isset($function) ) { |
| 908 |
|
error_log("api2_query requires that a username, module and function are passed to it"); |
| 909 |
|
|
| 910 |
|
return false; |
| 911 |
|
} |
| 912 |
|
if (!is_array($args)) { |
| 913 |
|
error_log("api2_query requires that an array is passed to it as the 4th parameter"); |
| 914 |
|
|