Ferreteria/v0.6/fx/ActionClass: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search
(Created page with "{{page/fx}} ==About== * '''Purpose''': sets the {{l/ver/clade|Sys/Events/ItWent|CommOp}} class for <code>{{l/ver/fx|DoCommand}}()</code> to return * '''Definition''': <code>{{fmt/php/inline|1=public function ActionClass() : string}}</code> ==Status== * '''{{fmt/date|2025|10|31}}''' It feels like this could be generalized/regularized a bit more, and terminology made more consistent. ==Usage== {| class="wikitable sortable" ! clade || type || notes |- | rowspan=3 | {{l/ver/...")
 
No edit summary
 
Line 23: Line 23:
| call      || <code>protected function NewAction() : {{l/ver/clade|Sys\Events|ItWent|ActionIface}} { return new ($this->ActionClass()); }</code>
| call      || <code>protected function NewAction() : {{l/ver/clade|Sys\Events|ItWent|ActionIface}} { return new ($this->ActionClass()); }</code>
|-
|-
| {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Ops\MyMar|Maria}} || implement || <code>return {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\aux\msgs\Maria|ItWent|ActionClass}}::class</code>
| {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Conn\MyMar|Maria}} || implement || <code>return {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\aux\msgs\Maria|ItWent|ActionClass}}::class</code>
|-
|-
| {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Ops\MyMar|MySQL}} || implement || <code>return {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\aux\msgs\MySQL|ItWent|ActionClass}}::class</code>
| {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\Conn\MyMar|MySQL}} || implement || <code>return {{l/ver/clade/full|p=ferreteria|Sys\Data\Engine\aux\msgs\MySQL|ItWent|ActionClass}}::class</code>
Note: this ItWent has not been defined as of 2025-10-31
Note: this ItWent has not been defined as of 2025-10-31
|}
|}

Latest revision as of 02:08, 1 November 2025

About

  • Purpose: sets the CommOp class for DoCommand() to return
  • Definition: public function ActionClass() : string

Status

  • 2025-10-31 It feels like this could be generalized/regularized a bit more, and terminology made more consistent.

Usage

clade type notes
IO\Aspect\Connx\Plug require
implement return CommOpClass::class
call WrapAction(CommOpClass $oActIn) calls if (is_a($oActIn,$this->ActionClass())) to determine if re-wrapping is needed
IO\Aspect\Connx\Plug\Shell call protected function NewAction() : ActionIface { return new ($this->ActionClass()); }
IO\Connx\Shell implement return CommOpClass::class
call protected function NewAction() : ActionIface { return new ($this->ActionClass()); }
Sys\Data\Engine\Conn\MyMar\Maria implement return Sys\Data\Engine\aux\msgs\Maria\ItWent::class
Sys\Data\Engine\Conn\MyMar\MySQL implement return Sys\Data\Engine\aux\msgs\MySQL\ItWent::class

Note: this ItWent has not been defined as of 2025-10-31