Re: [pidget-devel] new bindings
Brought to you by:
lkehresman
From: Luke E. <lu...@eh...> - 2003-10-19 18:29:33
|
> $contact1Name = pContactWidget::getRequestValue("widgetName", "Name"); > $contact1Address = pContactWidget::getRequestValue("widgetName", "Address"); > $contact1Phone = pContactWidget::getRequestValue("widgetName", "Phone"); > > That way we would have only one function to deal with. Yeah, I like this method better than the one I suggested. There would have been a lot of overhead that was unnecessary. This way they can extract only what they want/need. This also has the added benifit of allowing the widget developers to customize the data output. For example, think of a date/time widget that allows you to select a calendar date and a time. When making the widget, you could have the GetRequestValue method respond with the name of "Timestamp" (as well as "Day", "Hour", etc) which automatically converts the whole thing to a timestamp for you. Luke -- Luke Ehresman luke[at]ehresman.org http://www.luke.ehresman.org |