Implementing a Backend Module
In this section, we will implement the Backend module of our extension. Our Backend module will not use many functions, but the reader can extend it as required to include additional functionality.
Files and Classes
Our Backend module is going to be large. Therefore, we will have a main class for making the menu and dispatching code to other included files. The other files will have classes for showing:
The fixed number of logins
The Monthly view
The Active and inactive views (the same class)
The Page hit statistics for each user and optionally, the session
Classes and files will appear as follows:
File name |
Class name |
---|---|
|
|
|
|
|
|
|
|
|
|
All files will be there in the mod1
subdirectory. Each class will have a main
method. It...