MidCOM component administrative class
The core function of admin.php is to handle url requests passed to the component, when user is viewing the component via administrative interface.
Defining class
net_example_component_admin is still required by MidCOM branch 2.5, but the convention of use of administrative interface has changed. In MidCOM 2.5 content will be managed in the general style instead of a separate administrative interface and administrative interface should be defined in viewer.php.
MidCOM component handles administrative interface URL requests in the following order
- check if a request switch has been defined for the request
- placed in method
_on_initialize
- placed in method
- check the validity of request switch
- method
_handler_<handler name> - called before any output has been sent for the user
- method
- prints out the style elements
- method
_handler_<handler name> - called when website root style calls for
<(content)>
- method
If you are developing for MidCOM 2.4 branch, check the usage of the methods from MidCOM component request class.
