Update of /cvsroot/phpvortex/phpvortex/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2783/test
Modified Files:
TB_Test.class.php
Log Message:
Test programs: Changed TB_Test to use the new FT_PKey
Index: TB_Test.class.php
===================================================================
RCS file: /cvsroot/phpvortex/phpvortex/test/TB_Test.class.php,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** TB_Test.class.php 7 Oct 2004 18:31:26 -0000 1.1
--- TB_Test.class.php 7 Oct 2004 21:24:24 -0000 1.2
***************
*** 13,16 ****
--- 13,18 ----
require_once('../TB_Base.class.php');
/** Require the header for the field used in the test database. */
+ require_once('../FT_PKey.class.php');
+ /** Require the header for the field used in the test database. */
require_once('../FT_Text.class.php');
***************
*** 24,28 ****
function TB_Test(&$db) {
$this->name = 'phones';
! $this->fields['ph_id'] =& new FT_Text($db, array('name' => 'ph_id', 'pkey' => TRUE, 'required' => TRUE));
$this->fields['ph_name'] =& new FT_Text($db, array('name' => 'ph_name', 'label' => 'Name', 'required' => TRUE));
$this->fields['ph_phone'] =& new FT_Text($db, array('name' => 'ph_phone', 'label' => 'Phone', 'required' => TRUE));
--- 26,30 ----
function TB_Test(&$db) {
$this->name = 'phones';
! $this->fields['ph_id'] =& new FT_PKey($db, array('name' => 'ph_id'));
$this->fields['ph_name'] =& new FT_Text($db, array('name' => 'ph_name', 'label' => 'Name', 'required' => TRUE));
$this->fields['ph_phone'] =& new FT_Text($db, array('name' => 'ph_phone', 'label' => 'Phone', 'required' => TRUE));
|