[PHPVortex-Commit] phpvortex SEC_Edit.class.php,1.2,1.3
Brought to you by:
nop144666
From: Thiago R. <nop...@us...> - 2005-09-28 19:05:17
|
Update of /cvsroot/phpvortex/phpvortex In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27575 Modified Files: SEC_Edit.class.php Log Message: Added automatic instantiation of TB classes. Index: SEC_Edit.class.php =================================================================== RCS file: /cvsroot/phpvortex/phpvortex/SEC_Edit.class.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** SEC_Edit.class.php 24 Apr 2005 21:37:28 -0000 1.2 --- SEC_Edit.class.php 28 Sep 2005 19:05:06 -0000 1.3 *************** *** 31,34 **** --- 31,48 ---- /** + * Specify a table class to instantiate. + * + * @var string + */ + var $table_class = ''; + + /** + * Specify options to the $table_class instance. + * + * @var array + */ + var $table_opts = array(); + + /** * Form class to use. * *************** *** 153,156 **** --- 167,176 ---- parent::SEC_Base($opts); + // Load Table class if requested + if (!empty($this->table_class)) { + include_once($this->table_class.'.class.php'); + $this->table =& new $this->table_class($this->table_opts); + ); + // See what to do and perform the action if (!empty($_REQUEST["{$this->table->name}_action"])) { |