Book Image

TYPO3 Extension Development

Book Image

TYPO3 Extension Development

Overview of this book

Table of Contents (13 chapters)

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

index.php

tx_geuserstat_module1

class.tx_feuserstat_logins.php

tx_feuserstat_logins

class.tx_feuserstat_monthly.php

tx_feuserstat_monthly

class.tx_feuserstat_active.php

tx_feuserstat_active

class.tx_feuserstat_pagestats.php

tx_feuserstat_pagestats

All files will be there in the mod1 subdirectory. Each class will have a main method. It...