Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: NO) in /home2/relapse/public_html/adodb/drivers/adodb-mysql.inc.php on line 358

What's this?

The code templater is a method of fast-generating a PHP application framework based on its database design. Each table is given its own include file for a single entity and a list of entities (that's two files per table), and a PHP each for editing an object and listing all objects of a single table. Many:many join tables are made select boxes for tables to fight over.

The key to all this is the database design. This is based of an XHTML - using the ADODB data format so the design is easilly imported into any database.

Debugging: Parser

users

IDNc10KeyNullable  
NAMEc255Not KeyNullable  
EMAILc255Not KeyNullable  
CREATEDtNot KeyNot Null  

user_roles

IDNc10KeyNullable  
ROLEc10KeyNullable  

roles

ROLEc20KeyNullable  
ROLE_FULLc255Not KeyNot Null  
DESCRIPTIONX4000Not KeyNullable  

tblAudit

UIDc10KeyNullable  
SYSDATEtKeyNullable Default:now 
ACTIONIDi4KeyNullableAuto-incremented 
ACTIONc255Not KeyNot Null  
PAGEc255Not KeyNot Null  

site_reports

RIDi4KeyNullableAuto-incremented 
EFFECTIVE_DATETKeyNullable  
OWNER_UIDc10Not KeyNot Null  
SIDi4Not KeyNot Null  
COMMANDX4000Not KeyNot Null  
SITE_FILTERX4000Not KeyNullable  
LIDi4Not KeyNot Null  
COMMENTX4000Not KeyNullable  
CREATEDtNot KeyNot Null  
CATCHUPlNot KeyNullable  

schedule_reports

SCIDi4KeyNullableAuto-incremented 
EFFECTIVE_DATETKeyNullable  
ACTIVELNot KeyNullable  
RIDi4Not KeyNot Null  
YEARc4Not KeyNot Null Default:*
MONTHc2Not KeyNot Null Default:*
DAYc2Not KeyNot Null Default:*
WEEKDAYc1Not KeyNot Null Default:*
HOURc2Not KeyNot Null Default:*
MINUTEc2Not KeyNot Null Default:*
SECONDc2Not KeyNot Null Default:*
COMMENTSXLNot KeyNullable  
NOTIFY_OWNER_COMPLETElNot KeyNullable  
NOTIFY_OTHER_COMPLETElNot KeyNullable  
OTHER_EMAILX2000Not KeyNullable  
NOTIFY_OWNER_ERRORlNot KeyNullable  

report_logs

LIDi8KeyNullableAuto-incremented 
WHEN_RANtKeyNullable  
SCIDi4Not KeyNullable  
SUCCESSlNot KeyNot Null  
SEVERITYi2Not KeyNullable  
OUTPUTXLNot KeyNullable  
AUTOMATIClNot KeyNullable  

report_programs

RIDi4KeyNullableAuto-incremented 
NAMEc255Not KeyNot Null  
COMMANDx4000Not KeyNot Null  
HELP_TEXTx4000Not KeyNot Null  

config

CONFIGIDi4KeyNullableAuto-incremented 
FIELDc255Not KeyNot Null  
VALUE=x2000Not KeyNullable  

logfile_logs

LIDi8KeyNullableAuto-incremented 
WHEN_RANtKeyNullable  
SCIDi4Not KeyNullable  
SUCCESSlNot KeyNot Null  
SEVERITYi2Not KeyNullable  
OUTPUTXLNot KeyNullable  
AUTOMATIClNot KeyNullable  

logfile_locations

LIDi4KeyNullableAuto-incremented 
LOCAL_LOCATIONx500Not KeyNot Null  
FOREIGN_LOCATIONx500Not KeyNot Null  
FOREIGN_USERx500Not KeyNot Null  
MASKx500Not KeyNot Null  
COMMANDx500Not KeyNot Null  

catchups

CIDi4KeyNullableAuto-incremented 
STARTDATEtNot KeyNot Null  
ENDDATEtNot KeyNot Null  
RIDi4Not KeyNot Null  
REASONXLNot KeyNullable  

schedule_log_dl

SCIDi4KeyNullableAuto-incremented 
EFFECTIVE_DATETKeyNullable  
ACTIVELNot KeyNullable  
LIDi4Not KeyNot Null  
YEARc4Not KeyNot Null Default:*
MONTHc2Not KeyNot Null Default:*
DAYc2Not KeyNot Null Default:*
WEEKDAYc1Not KeyNot Null Default:*
HOURc2Not KeyNot Null Default:*
MINUTEc2Not KeyNot Null Default:*
SECONDc2Not KeyNot Null Default:*
COMMENTSXLNot KeyNullable  

sites

SIDi4KeyNullableAuto-incremented 
STORED_INi2Not KeyNot Null  
TABLE_KEYi4Not KeyNot Null  
SUBSITESLNot KeyNot Null  

config_man

CIDi4KeyNullable  
CONFIG_ITEM_IDi4Not KeyNot Null  

wsd

WIDi4KeyNullable  
HOSTNAMEc255Not KeyNot Null  
SITEPATHc255Not KeyNot Null