Date: 01/11/00
- Next message: ssilk: "[PHPLIB-DEV] cvs commit"
- Previous message: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Hi,
anyone there that can explain me marshal_dispatch() in
oohform.inc?
I know marshal_dispatch() was written to start the elements
validation. Usually it calls self_validate() method of each
element. I just wonder about $$vname. Who needs it?
function marshal_dispatch( $m, $func ) {
$vname = $this->name; # get the element name
global $$vname; # defines a new global variable -
but whatfor?
return $this->$func($$vname) # call self_validate()
}
This code cannot handle element names looking like arrays such as
"customer[surname]". I've no idea why. My marshal_dispatch() does
a good job job for me. How about a change?
function marshal_dispatch( $m, $func ) {
return $this->$func($this->value));
}
Ulf
-- Ulf Wendel NetUSE Kommunikationstechnologie GmbH Siemenswall, D-24107 Kiel, Germany Fon: +49 431 386435 00 -- Fax: +49 431 386435 99 - PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in the body, not the subject, of your message.
- Next message: ssilk: "[PHPLIB-DEV] cvs commit"
- Previous message: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

