Webface is an underlying technology that abstracts the control and visual aspects of a web page, away from the control logic.
It comprises of four components:
Covering them individually...
This covers all the visual aspects.
- htmlStart & htmlEnd
- splitting into panes
- Everything uses strings, not print
- Default implementation based around tables, not CSS
Determines whether a user is carry out a particular task. Since these
tasks are application-specific, most developers will create their
own implementation of this class' single method:
function isUserValidFor($purpose, $access = "w")
This builds control code to pass parameters
between one invocation of the script, and the subsequent one.
The default uses the GET message.
A typical GET request might look like this:
WARP, makes this easier.
Essential debug and tracing methods.
Everything comes together in this single interface object. Essentially, it's:
- Error, warning, and info levels
- Stores multiple errors
- Defaultly with output in HTML, but can be amended to trace to alert boxes, system logs files, etc, but overriding the methods.
$this->view = new Web_View;
$this->ctrl = new Web_Ctrl;
$this->auth = new Web_Auth;
$this->dbug = new Web_DBug;
If you simply pass a Web_Face reference around your code, and you can