[PHPVortex-Commit] phpvortex FT_Base.class.php,1.6,1.7
Brought to you by:
nop144666
From: Thiago R. <nop...@us...> - 2004-10-01 20:52:22
|
Update of /cvsroot/phpvortex/phpvortex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28880 Modified Files: FT_Base.class.php Log Message: Changed FT_Base to no more recive a reference to a TB_* Index: FT_Base.class.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/FT_Base.class.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** FT_Base.class.php 30 Sep 2004 19:33:06 -0000 1.6 --- FT_Base.class.php 1 Oct 2004 20:50:52 -0000 1.7 *************** *** 97,109 **** * Output the field as a HTML Form or just for display. * ! * @param TB_Base $table Table where the field is. * @param bool $form Show field as a INPUT object? */ ! function Show(&$table, $form = TRUE) { ! if (empty($table->data) || !isset($table->data[$this->name_form])) { $value = $this->default; } else { ! $value = $table->data[$this->name_form]; } if ($form) { --- 97,109 ---- * Output the field as a HTML Form or just for display. * ! * @param array $data Array containing the field values as 'field' => 'value'. * @param bool $form Show field as a INPUT object? */ ! function Show(&$data, $form = TRUE) { ! if (empty($data) || !isset($data[$this->name_db])) { $value = $this->default; } else { ! $value = $data[$this->name_db]; } if ($form) { |