Futilities/v0.6/clade/Sys/dba/InReq: Difference between revisions

From Woozle Writes Code
< Futilities‎ | v0.6‎ | clade‎ | Sys‎ | dba
Jump to navigation Jump to search
No edit summary
No edit summary
Line 18: Line 18:
|}
|}
==Purpose==
==Purpose==
This is supposed to do one of the following, and I think I got muddled between them; fixing that...:
Each object encapsulates a given input (request) term. Podling-clades will implement actions and provide functions to access needed values from the input, which is encapsulated by a c{{l/ver/clade|Sys\dba|InRqData}} object which can be retrieved from the OA{..}Input() functions.
* Each object encapsulates a given input (request) term (its name, type, and value(s) if any).
* Each object encapsulates all of the inputs from the user (on the command-line, URI, or whatever).
==Doing Stuff==
==Doing Stuff==
* To access input arguments, get an appropriate {{l/ver/clade|Sys\dba|InRqData|pfx=c}} object:
* To access input arguments, get an appropriate c{{l/ver/clade|Sys\dba|InRqData}} object:
** {{fmt/php/inline|$this->OAThisInput()}} returns the values for ''just the current request term'' (used in e.g. Describe()) (THAT WAS THE THEORY, NOT SURE THIS IS CORRECT)
** {{fmt/php/inline|$this->OAThisInput()}} returns the values for ''just the current request term'' (used in e.g. Describe()) (THAT WAS THE THEORY, NOT SURE THIS IS CORRECT)
** {{fmt/php/inline|static::OAKeptInput()}} returns the ''latest'' set values across all terms (used for doing actions)
** {{fmt/php/inline|static::OAKeptInput()}} returns the ''latest'' set values across all terms (used for doing actions)

Revision as of 13:48, 2 August 2025

clade: Sys\dba\InReq
Clade Family

DbStuff
[WFe]Settable

InReq

DoExport
DoImport
DoList
DoSetup
DoTest
SetFile
SetFolder
Value

Purpose

Each object encapsulates a given input (request) term. Podling-clades will implement actions and provide functions to access needed values from the input, which is encapsulated by a cInRqData object which can be retrieved from the OA{..}Input() functions.

Doing Stuff

  • To access input arguments, get an appropriate cInRqData object:
    • $this->OAThisInput() returns the values for just the current request term (used in e.g. Describe()) (THAT WAS THE THEORY, NOT SURE THIS IS CORRECT)
    • static::OAKeptInput() returns the latest set values across all terms (used for doing actions)