Futilities/v0.6/clade/Sys/dba/InReq/@removed

From Woozle Writes Code
< Futilities‎ | v0.6‎ | clade‎ | Sys‎ | dba‎ | InReq
Revision as of 20:29, 21 November 2025 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Removed Code

2025-11-21

Commented out yesterday:

#
    // ++ INPUTS: parsed/stored ++ //

    // 2025-11-20 Shortcuts won't work now -- we need to be able to specify which copy of input data to use.
    protected function QSDbConn() : QStrIface {
      #echo $this->ReflectThis()->Report();
        return $this->OAUserInput()->QSDbConn();
    }
    protected function QSchemaSlug() : QStrIface {
        return $this->OAUserInput()->QSSchema();
    }

2025-10-09

Before commenting out stuff (which might have happened yesterday?):

#
    protected function SaveAsEngConnName(string $s) {
        #$this->AmHere('OAUserInput is a '.get_class($this->OAUserInput()));
        #$this->OAUserInput()->SetIt(KioskEnum::VAL_CONN->value,$s);
        $this->OAUserInput()->QDbConnSlug()->SetIt($s); // 2025-10-08 Does this work? (Fix it, if not.)
    }

2025-09-25

refactoring these traits back out of existence:

/* EngDbExportRqTrait */  use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\dbase\tEngDbExport as EngDbExportRqTrait;
/* EngDbScListRqTrait */  use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\dbase\tEngDbScList as EngDbScListRqTrait;
/* EngDbSetupRqTrait */   use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\dbase\tEngDbSetup as EngDbSetupRqTrait;
/* EngDbTestRqTrait */    use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\dbase\tEngDbTest as EngDbTestRqTrait;
/* EngScExportRqTrait */  use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\ToSchema\tEngScExport as EngScExportRqTrait;
/* EngScImportRqTrait */  use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\ToSchema\tEngScImport as EngScImportRqTrait;
#/* ExportRqClass */ use Woozalia\Ferret\Sys\Data\reqs\Engine\ActionRq\Admin\dbase\cEngDbExport as ExportRqClass;

2025-09-22

Commented out 2025-09-20 & 21:

#
    protected function NewUserConfigRequest() : RequestIface { return UConfRqClass::FromDbOper($this->ODbOper()); }
    protected function NewConnTestRequest()   : RequestIface { return TestRqClass::FromDbOper($this->ODbOper()); }
    protected function NewSchemaListRequest() : RequestIface { return ListRqClass::FromDbOper($this->ODbOper()); }
    protected function NewExportRequest()     : RequestIface { return ExportRqClass::FromDbOper($this->ODbOper()); }
    // 2025-09-20 to document: why isn't this how we do it? --
    protected function NewImportRequest()     : RequestIface { return ImportRqClass::FromDbOper($this->ODbOper()); }

    // 2025-09-20 replacing this v with the shorter version above --
    protected function NewImportRequest()     : RequestIface {
        #$this->AmHere();
        $os = $this->QOSchema();
        #echo $this->ReflectThis()->Report();
        #echo $this->OAUserInput()->ReflectThis()->Report();
        $ooMeta = $this->QOSchemaMeta();
        if ($ooMeta->HasIt()) {
            $ofMeta = $ooMeta->GetIt();
            #echo $ofMeta->InOut()->ReflectThis()->Report();
            return ImportRqClass::FromParams($os->GetIt(),$ofMeta->InOut()->TargetNode(),$this->OAUserInput()->OkToReplace());
        } else {
            self::ThrowHissy('This should never happen.');
        }
        #return ImportRqClass::FromSchema($this->QOSchema()->GetIt());
    }

2025-04-28

Commented out on 2025-03-27:

#
    // OVERRIDE
    // 2025-03-27 Does this need to be here?
    public function QOSchema() : QObjIface {
        $this->AmHere();
        $os = $this->qoSchm;
        $doNew = FALSE;
        if (is_null($os)) {
            $os = QObjClass::FromNone();
            $this->qoSchm = $os;
            $doNew = TRUE;
        } elseif (!$os->HasIt()) {
            $doNew = TRUE;
        }

        if ($doNew) {
            $os = $this->QOSchemaMeta();
            $oMeta = $os->GetIt();
            echo $oMeta->ReflectThis()->Report();
            $this->qoSchm = $os;
        }
        return $os;
    }

2025-01-27

#
    // ++ SETTINGS: internal: Schema ++ //

    // 2025-01-27 This class isn't supposed to be aware of Schema yet; podlings should call $this->OInput()->... to get info.
    private $sSchemaName = NULL;
    protected function HasSchema() : bool { return is_string($this->sSchemaName); }
    protected function SchemaName(string $s=NULL) : string {
        if (is_null($s)) {
            if (is_null($this->sSchemaName)) {
                $this->CheckSpecs();
            }
            $s = $this->sSchemaName;
        } else {
            $this->sSchemaName = $s;
        }
        return $s;
    }

2025-01-25

#
    protected function EngineSlug(string $s=NULL) : string {
        // 2025-01-23 old method
        if (is_null($s)) {
            if (is_null($this->sEngineSlug)) {
                $this->CheckSpecs();
            }
            $s = $this->sEngineSlug;
        } else {
            $this->sEngineSlug = $s;
        }
        return $s;
    }

//...

    private $sEngineSlug = NULL;
    protected function HasEngine() : bool { return is_string($this->sEngineSlug); }
    protected function EngineSlug(string $s=NULL) : string { return $this->OInput()->DbaseSlug(); }

//...

    // 2025-01-23 functionality reimplemented in input-handler class
    private $arVals=NULL;
    protected function CheckSpecs() {
        if (is_null($this->arVals)) {
            $osVal = $this->QSetting();
            if ($osVal->HasIt()) {
                $sDataSpec = $osVal->GetIt();
                $ar = explode('/',$sDataSpec);
                $this->arVals = $ar;
                $nSpec = count($ar);
                $this->sEngineSlug = $ar[0];
                if ($nSpec > 1) {
                    // we also have the schema name
                    $this->sSchemaName = $ar[1];
                }
            }
        }
    }