The JoomlaStats API can be used by programmers to use the JoomlaStats as an engine to build your own applications.
...
Both of them You will find in below directory:
.../joomla/administrator/components/com_joomlastats/api/
.
To include JoomlaStats API, for example in Your module, use below statement:
No Format |
---|
{//include JoomlaStats API
$PathToJoomlaStatsApi = dirname(__FILE__) .DIRECTORY_SEPARATOR. '..' .DIRECTORY_SEPARATOR. 'administrator' .DIRECTORY_SEPARATOR. 'components' .DIRECTORY_SEPARATOR. 'com_joomlastats' .DIRECTORY_SEPARATOR. 'api' .DIRECTORY_SEPARATOR. 'api.include.php';
if (defined( '_JEXEC' )) //in joomla CMS v1.5.x all modules have own direcotory - path need to be a little longer
$PathToJoomlaStatsApi = dirname(__FILE__) .DIRECTORY_SEPARATOR. '..' .DIRECTORY_SEPARATOR. '..' .DIRECTORY_SEPARATOR. 'administrator' .DIRECTORY_SEPARATOR. 'components' .DIRECTORY_SEPARATOR. 'com_joomlastats' .DIRECTORY_SEPARATOR. 'api' .DIRECTORY_SEPARATOR. 'api.include.php';
if ( file_exists($PathToJoomlaStatsApi) ) {
require_once($PathToJoomlaStatsApi);
} else {
echo 'File with JoomlaStats API not found. Did You install JoomlaStats engine (eg.: com_joomlastats_v2.3.0.zip)?';
}
}
|
.
Each function in these files has comments, that explains the pruprose of the Each function in this file has comment, that tells about purpose of function, how to use it and describe describes the list of arguments.
Please use documentation from above files, until we do not update on-line documentation.
Class | Description |
---|---|
This class contain simplified versions of other JoomlaStats API methods. | |
This class contain most of the JoomlaStats API methods. | |
This class contains (hold) data about Operating System (OS) | |
js_Browser | This class contains (hold) data about Browsers |
js_Tld | This class contains (hold) data about Top Level Domains (TLD) |
js_Visitor | This class contains (hold) data about visitors |