science-ation/judge.class.php
dave 1e9f68a35e - Add the table editor class (not heavily modified for SFIAB yet)
- Add the table editor style sheet, and load it in the header (needs editing)
- Add a judge class (not complete)
- Add a judge manager php file that doesn't interfere with what's already in the system

THis is a proof of concept, it sorta works, but the table editor is still reading directly from the judges class.  It will be updated to make calls only into the calling class type, thus abstracting away all the SQL stuff, and allowing the group class (judge in this case) to hide
all the cross table references we need to make for loading, saving, deleting, etc.
2006-10-11 00:28:58 +00:00

52 lines
797 B
PHP

<?
class person {
};
class judge extends person {
/* Static members for the table editor */
function editor_setup($editor)
{
/* Setup the table editor with the fields we want to display
* when displaying a list of judges, and also the type of each
* field where required */
$l = array( 'id' => 'ID',
'firstname' => 'First Name',
'lastname' => 'Last Name'
);
$e = array( 'firstname' => 'First Name',
'lastname' => 'Last Name',
'address' =>"Address 1",
'address2' =>"Address 2",
'complete' => "Complete" );
$editor->setTable('judges');
$editor->setListFields($l);
$editor->setEditFields($e);
// $editor->setFieldOptions('complete', array('yes','no'));
}
/* Functions for $this */
function judge()
{
}
function load()
{
}
};
?>