Ferreteria/v0.6/clade/Sys/Data/Engine/endpt/Client/@removed
< Ferreteria | v0.6 | clade | Sys | Data | Engine | endpt/Client
Jump to navigation
Jump to search
|
Removed Code
|
2026-01-27
Removed for Client/Server refactoring:
#
// interface
// INFO
#function ConnSlug() : string; // connection shortname
// OBJECTS
function NewCommOp() : CommOpIface;
// class
protected function CommOpClass() : string { return CommOpClass::class; }
// ++ SETUP ++ //
protected function __construct() {}
// USAGE: Only call if constructing to pass to a Conn object's constructor
static public function ForConn() : iOper {
$oThis = new static;
return $oThis;
}
static public function FromConn(ConnIface $oConn) : iOper {
$oThis = new static;
$oThis->WithConn($oConn);
return $oThis;
}
// ++ SETUP: dynamic ++ //
private $oConn=NULL;
public function WithConn(ConnIface $oConn) : void {
$this->oConn = $oConn;
#$this->RegisterThis();
}
protected function OConn() : ConnIface { return $this->oConn; }
// -- SETUP -- //
/* ... */
public function NewCommOp() : CommOpIface { return new ($this->CommOpClass()); }
/* ... */
// ++ INFO ++ //
public function ConnSlug() : string { return $this->OConn()->ObjectSlug(); }
// -- INFO -- //
2025-11-11
// 2025-06-06 default should take care of this now
protected function RegisterThis() {
$oConn = $this->OConn();
#echo $oConn->ReflectThis()->Report(); // how do we get the ObjectSlug()?
$sSlug = $oConn->Slug();
$this->Register()->SetIt($sSlug,$oConn);
}