From: uw
Date: Thu May 10 18:43:20 2001
Removed files:
php-lib/php/form/form_loader.inc
Modified files:
php-lib/php/form/form.inc
Log message:
Finally the loader itself..
Index: php-lib/php/form/form.inc
diff -u php-lib/php/form/form.inc:1.23 php-lib/php/form/form.inc:1.24
--- php-lib/php/form/form.inc:1.23 Thu May 10 18:16:06 2001
+++ php-lib/php/form/form.inc Thu May 10 18:43:19 2001
@@ -28,7 +28,7 @@
* - tree (select box with options show as a tree)
*
* @author Ulf Wendel <[EMAIL PROTECTED]>
-* @version $Id: form.inc,v 1.23 2001/05/10 16:16:06 uw Exp $
+* @version $Id: form.inc,v 1.24 2001/05/10 16:43:19 uw Exp $
* @access public
* @package Form
*/
@@ -170,18 +170,6 @@
var $method = "POST";
/**
- * Flag indication that you're using the Form Loader.
- *
- * addElement() will call form_elements_loader() if the flag is set to true.
- * It's strongly recommended that you use the Form Loader unless you're
- * using the Zend Cache or a similar product.
- *
- * @var boolean
- * @access public
- */
- var $flag_loader = true;
-
- /**
* Flag indicating that a file upload button is in the form.
*
* @var boolean
@@ -545,14 +533,12 @@
$element_data["name"] = $this->element_prefix .
$element_data["name"];
$element_data["type"] = strtolower($element_data["type"]);
- $objectname = $element_data["type"];
-
- if ($this->flag_loader)
- form_elements_loader($objectname);
-
+
+ $objectname = "form_element_" . $element_data["type"];
+ include_once(FORM_INCLUDE_DIR . $objectname);
+
$this->addDefaultAttributes($element_data);
- $objectname = "form_element_" . $element_data["type"];
$el = new $objectname($element_data, $this->method,
$this->js_name, $this->js_mode);
// FIXME
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]