Chapter 6. User interface

Table of Contents

admin_panel () constructor
Static function instance ()
Opening and closing documents.

admin_panel is a facade that combines the application base class, widget set, form interpreter, cursor interface and record manipulation tools into an easy-to-use interface while allowing full access to the interfaces used.

admin_panel () constructor

object new admin_panel (&$application_object, $title, $widget_set = 0);
      

The constructor takes a reference to the application object and a name of the application that is used as the title for all document headers. Since admin_panel is a singleton class, a single instance must be passed to instance().

If $widget_set doesn't contain a widget_set class a default widget set is used and stored to member variable admin_panel::widgets.