Re: [PHPLIB] Sql_Query and $base From: Kristian Köhntopp (kris <email protected>)
Date: 12/23/99

Christopher Klumb wrote:
> Please explain exactly what $base does within class Sql_Query.

The class does generate an input form. Input form elements must
have a name. That name will be $this->base. That is, all input
elements of the form generated by Sql_Query are produced by the
function makename, which does it like this:

  ## Given a basename $base, and attribute name $att and an attribute
  ## number $num, this functions returns an input field name
  ## $base[$name_$num].
  ##
  ## This construct can be imported into a function namespace with a
  ## single global instruction and the field name can be easily
  ## exploded into component names and numbers.

Kristian

-- 
Kristian Koehntopp, Knooper Weg 46, 24103 Kiel, +49 171 2231 811
Linux - Come to where the sourcecode is.
Where software still is free and some men code what what others only
dream of.

- PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>. To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in the body, not the subject, of your message.