Ferreteria/v0.6/clade/Sys/Data/Engine/Oper/MyMar/@removed

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | Sys‎ | Data‎ | Engine‎ | Oper‎ | MyMar
Revision as of 14:28, 27 November 2025 by Woozle (talk | contribs) (Created page with "{{fmt/title|Removed Code}} =={{fmt/date|2025|09|25}}== * {{fmt/date|2025|06|09}} These need to be enabled by a "tunnel" mode or something. Otherwise, we're using CLI. * {{fmt/date|2025|06|10}} Actually, these don't belong here at all; moved to Conn class (I was confused...) and commented out. {{fmt/php/block|1=# public function ActualOpen() : ActionIface { $oa = new ($this->ActionClass()); // result object $oSock = $this->OSock(); $oConn =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Removed Code

2025-09-25

  • 2025-06-09 These need to be enabled by a "tunnel" mode or something. Otherwise, we're using CLI.
  • 2025-06-10 Actually, these don't belong here at all; moved to Conn class (I was confused...) and commented out.
#
    public function ActualOpen() : ActionIface {

        $oa = new ($this->ActionClass());  // result object

        $oSock = $this->OSock();
        $oConn = $oSock->OPlug();
        $oConn->Open();
        $oCred = $oConn->Cred();
        #echo $oCred->ReflectThis()->Report();
        // 2025-06-03 This will need updating.
        $onDB = new mysqli(
          $oSock->OHost->SAddr(),
          $oCred->QSUser()->GetIt(),
          $oCred->QSPass()->GetIt(),
          $oCred->QSSchema()->GetItNz(),
          $oCred->QIPort()->GetItNz(),
          );	 // open the connection natively
        if (is_object($onDB)) {
            $oa->SetOkay(TRUE);
            $this->QNative()->SetIt($onDB);
        } else {
            // 2022-01-26 probably want a method to do all this
            $oa->SetOkay(FALSE);
            $oa->SetNumber($this->ErrorNumner());
            $oa->AddMsgString($this->ErrorMessage());
        }
        return $oa;
    }
    public function ActualShut() : ActionIface {
        // close endpoint-to-engine connection
        $ok = $this->QNative()->GetIt()->close();
        // close code-to-endpoint connection
        $this->OSock()->OConn()->Shut();
        $oAct = new ($this->ActionClass());
        $oAct->SetOkay($ok);
        return $oAct;
    }