X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plekit%2Fphp%2Fform.php;fp=plekit%2Fphp%2Fform.php;h=6436172067676f78a033bd3f8577f9476ac728a3;hb=f0fda226610166bcb313f6d1c6a963d9b9e1f94c;hp=f56f02ad00afb84992ee34396b8dc67d46e1f9b0;hpb=53fb202a0ed1ef1df5c9c292de2fc410b782e5bb;p=plewww.git diff --git a/plekit/php/form.php b/plekit/php/form.php index f56f02a..6436172 100644 --- a/plekit/php/form.php +++ b/plekit/php/form.php @@ -16,7 +16,7 @@ class PlekitForm { var $onSubmit; // can be set with options var $onReset; // can be set with options - function PlekitForm ($full_url, $values, $options=NULL) { + function __construct ($full_url, $values, $options=NULL) { // so we can use the various l_* functions: // we parse the url to extract var-values pairs, // and add them to the 'values' argument if any @@ -160,7 +160,7 @@ class PlekitFormButton extends PlekitForm { var $button_id; var $button_text; - function PlekitFormButton ($full_url, $button_id, $button_text, $method="POST") { + function __construct ($full_url, $button_id, $button_text, $method="POST") { $this->PlekitForm($full_url,array(),$method); $this->button_id=$button_id; $this->button_text=$button_text;