Ferreteria/v0.6/fx/OPlug

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Jump to navigation Jump to search

About

  • Purpose: access to the current object's Plug object
    • 2026-01-22 I'm documenting this now with the idea that the Plug clade might actually be redundant -- and if it's not, I need to know why it is necessary.
  • Definition: function OPlug() : IO\Aspect\Connx\Plug
    • 2026-01-22 I'm doing various code-experiments to see if this function and the Plug clade can be eliminated.

Usage

clade require implement call / notes
IO\Aspect\Connx\Stream\Chain

in ActualOpen(), ActualShut(): $oPlug = $this->OSock()->OPlug();
in ForwardCommand): return $this->OSock()->OPlug()->DoCommand($oCmd);

IO\Aspect\Socket public function OPlug() : PlugIface return $this->oPlug;
Sys\Data\Engine\Conn\MyMar 3 uses, all via $this->OSock()->OPlug()
Sys\Data\Engine\Oper\MyMar $this->OConn()->OSock()->OPlug()
Sys\Data\Engine\schema\Ops\MyMar $this->DbConn()->OSock()->OPlug()