Futilities/v0.6/clade/Apps/dba/InArgs/@removed
Jump to navigation
Jump to search
|
Removed Code
|
Commented out today:
// ++ OBJECTS ++ //
// 2025-11-15 Now using SchemerTrait implementation.
private $oqSchema=NULL;
public function QOSchema() : QObjIface {
$oo = $this->oqSchema;
if (is_object($oo)) {
$bDoGet = !$oo->HasIt();
} else {
$oo = QObjClass::AsNew();
$bDoGet = TRUE;
$this->oqSchema = $oo;
}
if ($bDoGet) {
$os = $this->QSchemaSlug(); // Schema name-slug
if ($os->HasIt()) {
$sSch = $os->GetIt();
#echo $this->ReflectThis()->Report();
$qoDbOper = $this->QODbOper();
if ($qoDbOper->HasIt()) {
$oDbOper = $qoDbOper->GetIt();
$oSch = $oDbOper->GetSchema($sSch);
$oo->SetIt($oSch);
}
/* 2025-10-30 Not correct anymore.
$oqDbConn = $this->QODbConn();
if($oqDbConn->HasIt()) {
$oDbConn = $oqDbConn->GetIt();
#echo $this->ReflectThis()->Report();
$oSch = $oDbConn->GetSchema($sSch);
$oo->SetIt($oSch);
}
* /
} else {
//
echo "INPUT: ".$this->Inspect()->Render();
echo '(TODO 2025-11-13: Decode the input internal-names so we can prompt the user more precisely.)'.CRLF;
}
}
return $oo;
}
// -- OBJECTS -- //
// 2025-10-27 now implemented in [WFe]Sys\Data\Engine\aux\ActionRq\Admin\ToDbConn
private $oqDbConn=NULL;
public function QODbConn() : QObjIface {
$oo = $this->oqDbConn;
if (is_object($oo)) {
$bDoGet = !$oo->HasIt();
} else {
$qo = QObjClass::AsNew();
$bDoGet = TRUE;
$this->oqDbConn = $qo;
}
if ($bDoGet) {
$qo->SetIt($this->ODbConn());
}
return $qo;
}
Commented out at the end of July:
// 2025-07-29 added but probably don't need
use Woozalia\Ferret\Sys\Data\Engine\{
iConn as OperIface,
caOps as OperAdmin,
iOps as OperIface,
};
Added code yesterday to see if this code is still in use, and it was not triggered:
// ++ SETUP: pieces ++ //
// CEMENT
protected function UseContent(string $s) : void {
self::GotToHere('2025-03-08 Is this still being called?'); die();
#$arPcs = explode('/',$s); // 2025-01-22 This is a bit of a kluge
$this->QRaw()->SetIt($s);
$arPcs = $this->ValueArray();
$nPcs = count($arPcs);
switch($nPcs) {
case 0:
echo 'Indicate what and where to import like this: "write:{db name}/{schema name}".'.CRLF;
break;
case 1:
$sDB = $arPcs[0];
echo 'Indicate which file to import like this: "write:'.$sDB.'/{schema name}".'.CRLF;
$this->QDbConnSlug()->SetIt($sDB);
break;
default: // 2 or more
[$sDbase,$sSchema] = $arPcs;
$this->QDbConnSlug()->SetIt($sDbase);
$this->QSchemaName()->SetIt($sSchema);
break;
}
}
// -- SETUP -- //
Commented out days/weeks ago, not sure why except that it seemed to be unused (and looking at it now, it's probably the wrong way to do it anyway):
// ++ ACCESS: kept ++ //
static private $osSch = NULL;
public function KeptQSchema() : QObjIface { return self::$osSch ?? (self::$osSch = $this->NewQSchema()); }
protected function NewQSchema() : QObjIface { return QObjClass::FromNone(); }
// ++ ACCESS: best ++ //
public function QSchemaName() : QStrIface {
$os = $this->GetItQ('xf.schema');
if (!$os->HasIt()) {
$os = $this->Latest()->GetItQ('xf.schema');
}
return $os;
}