using_c3_module [line 36]
string using_c3_module(
string $module_name, [string $username = ''], [string $pass = ''], [integer $usingcache = 1], [bool $update = false], [bool $usingsandbox = false], [string $cachedir = 'cache'])
|
|
using_c3_module Basic API for C3 services, similiar to require_once function. call is safe even failed to connect API server. first call needs to enable socket or cURL. Here are some simple examples: using_c3_module('hello');
c3_hello('world');
Tags:
Parameters
| string |
$module_name |
C3 module name |
| string |
$username |
same as global $c3_user, if is null or empty string, API will use global variable |
| string |
$pass |
same as global $c3_passwd |
| integer |
$usingcache |
same as global $c3_cache_level |
| bool |
$update |
True to update at once, False to upon $c3_cache_level or $usingcache |
| bool |
$usingsandbox |
False to use C3 producation API server, True to use sandbox API server |
| string |
$cachedir |
caching folder, default to "cache" |
|
|