Opendelight Objects, Arrays and Libraries

The Opendelight provides three core objects to be used in application development - `$DB`, `$APP` and `$USER`. These objects are automatically instantiated and are available in the application. The `$DB` object is responsible for database access and data manipulation. The second object `$APP` is the instance of the application when an HTTP request is made and carries all related data. The `$USER` object carries data of the user accessing the system (uses *Row Gateway Data Pattern*) and is only instantiated if the controller is private or mixed. The interaction of `$APP` and `$USER` objects are based on the *RBAC (Role-based Access Control)* scheme as described in [Overview of Opendelight Architecture](https://www.phytoon.com/opendelight-v1-60810d7043c77/overview-opendelight-architecture-60810ef7c959d). The speciality of the objects is that one does not need to instantiate these three objects. These objects are automatically available within the application main scope. You can also make them available within any Model class by accepting them as global

To continue reading "Opendelight Objects, Arrays and Libraries", login now.

This page has been protected for subscriber only and it is free to subscribe.