Professional Documents
Culture Documents
Phpopentracker Reference Manual: Sat Feb 19 22:29:53 2005
Phpopentracker Reference Manual: Sat Feb 19 22:29:53 2005
Phpopentracker Reference Manual: Sat Feb 19 22:29:53 2005
1 phpOpenTracker Project 1
1.1 Concept . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
1.2 Core Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
1.3 Admin&User Interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
phpOpenTracker Project
1.1 Concept
• Project based on OpenSource solution. OpenSource solution consist of only tracking engine, set of
APIs. originally there no GUI interfaces, this is very advanced engine with no GUIs
1. User Interface
2. Tracking Code
3. Profile
4. Searches
5. Reports
6. Pre-Defined Reports
7. Admin Interface
Project use XHTML design, advanced CSS using and no ’table’ tags. Design is very lightweight and page
size short. DAO based access to MySQL databases. MVC application hierarchy. Multi-language support.
FastTemplate engine based.
Web-Bug code this is tracking code, which have to be included in all user-site pages. All html pages where
included web-bug code will be tracked by system. Code example:
<img src=’http://192.168.7.17/phpOpenTrackerFrontend/image.php?client_id=292403’/>
System can track not only entry pages, but exit pages too, web-bug code using for track entry pages, Exit
Links using for track exit targets.
User able to create category for group reports, System include lot of reports and user can compile several
reports in one custom report, so each user can have about 20-30 different reports and for easy managment
user can group reports by categories
1.3.5 Searches
Searches - dataset of predefined traffic filters. User have ability to create reports with custom filters, for
example we can create report only for Mozilla browsers, or for IE browsers previous day or for Windows
systems current month
1.3.6 Reports
• Top10 Details
• Top10 Documents
• Visitors Online
Instead of run system reports user have ability to compile sveral system reports in one complex user-defined
reports, this is a set of single reports joined in one report
cDAO
• get ($sql)
• lst ($sql)
• update ($rx, $id, $tbl, $key)
• insert ($rx, $tbl)
• recordsetToAssocArray ($recordSet)
Convert Recordset to associative array.
Public Attributes
• $db
Database class.
• $sql
Last SQL query.
18 phpOpenTracker Class Documentation
• dao.php
cDAO
cDAOpot_tables
• dao.php
cDAO
cDAOtblCategories
Public Attributes
• $fields = array(IDCategory, IDUser, Category)
• $tableName = ’tblCategories’
• $keyName = ’IDCategory’
tblCategories table
Definition at line 140 of file dao.php.
The documentation for this class was generated from the following file:
• dao.php
cDAO
cDAOtblReports
Public Attributes
• $fields = array(IDReport, ’Name’)
• $tableName = ’tblReports’
• $keyName = ’IDReport’
tblReports
Definition at line 306 of file dao.php.
The documentation for this class was generated from the following file:
• dao.php
cDAO
cDAOtblReportsSearches
• listReports ()
• listReportsByIDUserReport ($id)
• getByID ($id)
• update ($rowData, $id)
• insert ($rx)
• lastId ()
• delete ($id)
Public Attributes
• $fields
• $tableName = ’tblReportsSearches’
• $keyName = ’IDReportSearch’
tblReportsSearches
Complex User Report Set of simple reports
Definition at line 386 of file dao.php.
5.5.2.1 cDAOtblReportsSearches::$fields
Initial value:
array(
IDReportSearch,
IDUserReport,
IDReport,
IDSearch,
Position
)
• dao.php
cDAO
cDAOtblSearches
• getClientId_byIDSearch ($IDSearch)
• update ($rowData, $id)
• insert ($rx)
• lastId ()
• delete ($id)
• deleteDirectSearches ()
• countDirectSearches ()
• directSearchId ()
Public Attributes
• $fields = array(IDSearch, IDUser, IDCategory, ’Name’, Search, typeId)
• $tableName = ’tblSearches’
• $keyName = ’IDSearch’
tblSearches table
Definition at line 188 of file dao.php.
The documentation for this class was generated from the following file:
• dao.php
cDAO
cDAOtblUserReports
Public Attributes
• $fields = array(IDUserReport, IDUser, ’Name’)
• $tableName = ’tblUserReports’
• $keyName = ’IDUserReport’
• dao.php
cDAO
cDAOtblUsers
Public Attributes
• $fields = array(IDUser’,’IDUserRole’,’Username’,’Passwd’,’client_id)
• dao.php
Multi-Language Support.
• cLang ($lang)
• uploadResources ()
Get Language Matrix from resource file.
• translationMatrix ()
Return Translation Matrix ENG -> CURRENT_LANG.
Public Attributes
• $langMatrix = array()
Translation Matrix.
• $currentLang = ’eng’
Current Language.
• $resFilename = ’etc/lang.csv’
Language Resources File.
• $langDimension = 2
Languages Amount in resource File.
• $langHeader
Languages Amount in resource File.
Multi-Language Support.
Definition at line 5 of file lang.php.
5.9.2.1 cLang::$langHeader
Initial value:
array(
0 => ’eng’,
1 => ’rus’
)
• lang.php
Report Libraries.
Definition at line 3 of file report.php.
• report.php
Variables
Reports Interfaces.
Definition in file reports.php.
Module config
Definition at line 20 of file reports.php.
6.1.2.3 $searchesOptionsArray
Initial value:
$daoSearches->recordsetToAssocArray($searchesOptionsRecordset)
Variables
• $daoSearches = new cDAOtblSearches()
• $daoCategories = new cDAOtblCategories()
• $daoPot_Tables = new cDAOpot_tables()
• $rHours = array(’0’ => )
• $moduleConfig = array()
• $recordsetSearchDetails = $daoSearches → getById($moduleConfig[IDSearch])
• $formData = array()
• $formUserManageSearch = new formamanager()
• $formUserManageSearch id = $moduleConfig[’form’]
• break
• default __pad1__
• default
• $categoriesOptionsArray
• $searchTableData = unserialize(stripslashes($recordsetSearchDetails[Search]))
• $formPOTData = array()
• $formAdminManageUser = new formamanager()
6.2.2.1 $categoriesOptionsArray
Initial value:
$daoCategories->recordsetToAssocArray($categoriesOptionsRecordset)
$categoriesOptionsArray
searches.php, 33
$fields
cDAOtblReportsSearches, 22
$formData
reports.php, 31
$langHeader
cLang, 27
$moduleConfig
reports.php, 32
$searchesOptionsArray
reports.php, 32
cDAO, 17
cDAO
lst, 18
cDAOpot_tables, 19
cDAOtblCategories, 20
cDAOtblReports, 21
cDAOtblReportsSearches, 22
cDAOtblReportsSearches
$fields, 22
cDAOtblSearches, 24
cDAOtblUserReports, 25
cDAOtblUsers, 26
cLang, 27
cLang
$langHeader, 27
lst
cDAO, 18
report, 29
show, 29
reports.php, 31
$formData, 31
$moduleConfig, 32
$searchesOptionsArray, 32
searches.php, 33
$categoriesOptionsArray, 33
show
report, 29