Ferreteria/v0.6/clade/Sys/Data/Engine

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | Sys‎ | Data
Jump to navigation Jump to search
clade: Sys\Data\Engine
Clade Family
StandardBase Engine MyMar
Clade Aliases
Alias Clade
Base* [c,i] Aux\StandardBase
ClientIface Sys\Data\Engine\endpts\Client
ServerIface Sys\Data\Engine\endpts\Server
Subpages

Subspaces

namespace endname description
Sys\Data\Engine aux [other] auxiliary clades
Sys\Data\Engine endpt endpoint clades for Engine
Sys\Data\Engine schema Schema-handling clades

Subclades

namespace endname description
Sys\Data\Engine MyMar administrator for MariaDB & MySQL

History

  • 2026-01-26 created for YAMW (Yet Another Massive Reworking)

Code

as of 2026-01-26:

interface iEngine extends BaseIface {
    function OClient() : ClientIface;
    function OServer() : ServerIface;
}
abstract class caEngine extends BaseClass implements iEngine {

    // ++ CONFIG ++ //

    abstract protected function ClientClass() : string;
    abstract protected function ServerClass() : string;

    // -- CONFIG -- //
    // ++ OBJECTS ++ //

    private $oCli = NULL;
    public function OClient() : ClientIface { return $this->oCli ?? ($this->oCli = new ($this->ClientClass())); }
    private $oSvr = NULL;
    public function OServer() : ServerIface { return $this->oSvr ?? ($this->oSvr = new ($this->ServerClass())); }

    // -- OBJECTS -- //
}