Date: 05/10/01
- Next message: uw: "[phplib-dev] cvs commit"
- Previous message: uw: "[phplib-dev] cvs commit"
- Next in thread: uw: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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)
*
* <email protected> Ulf Wendel <ulf.wendel <email protected>>
-* <email protected> $Id: form.inc,v 1.23 2001/05/10 16:16:06 uw Exp $
+* <email protected> $Id: form.inc,v 1.24 2001/05/10 16:43:19 uw Exp $
* <email protected> public
* <email protected> 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.
- *
- * <email protected> boolean
- * <email protected> public
- */
- var $flag_loader = true;
-
- /**
* Flag indicating that a file upload button is in the form.
*
* <email protected> 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: phplib-dev-unsubscribe <email protected>
For additional commands, e-mail: phplib-dev-help <email protected>
- Next message: uw: "[phplib-dev] cvs commit"
- Previous message: uw: "[phplib-dev] cvs commit"
- Next in thread: uw: "[phplib-dev] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

