My favorites | Sign in
Project Home Downloads Wiki Issues Source
Checkout   Browse   Changes    
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
class AppZone extends GuiZone
{
function chooseGui($guiType)
{
switch($guiType)
{
case 'main':
$gui = new AppGui();
break;

default:
trigger_error("unknown gui type: $guiType");
break;
}

return $gui;
}

function closePages($p, $z)
{
if(!$this->displayed())
$this->display($p[0]);
}

// there's probably a better way to do this. this is just to change the default for guiType
// we could just make NULL mean 'main' in chooseGui above
function display($templateName, $guiType = 'main')
{
parent::display($templateName, $guiType);
}
}

Change log

r225 by rgigger on Apr 17, 2008   Diff
updated general.todo
Added the Object class for mixins,
getters, and setters
Support for MS Sql Server
Added DbZone as an intro to scaffolding
and as an example of how to reuse zone
functionality
added the ability to inspect schema
information in databases
fixed some of the stationary
added examples for some of the new
database functionality
Go to: 
Project members, sign in to write a code review

Older revisions

r161 by rgigger on Dec 11, 2007   Diff
this should be the new default
starting point for projects
All revisions of this file

File info

Size: 594 bytes, 32 lines
Powered by Google Project Hosting