Futilities/v0.6/clade/Actor: Difference between revisions

From Woozle Writes Code
< Futilities‎ | v0.6‎ | clade
Jump to navigation Jump to search
(Created page with "{{fmt/title|Removed Clade: <code>Actor</code>}} =={{fmt/date|2025|01|19}}== This file (Actor.php) appears to be completely unused at this point; here is the entire remaining contents of the file (now deleted): {{fmt/php/block|1= <?php namespace Woozalia\Futil; →‎* * HISTORY: 2024-10-15 created 2024-11-19 tentatively, this is unused: interface iActor { function Go(); } abstract class caActor implements iActor { } }} =={{fmt/date|2024|11|08}}== {{fmt/php/bl...")
 
(No difference)

Latest revision as of 21:56, 20 November 2025

Removed Clade: Actor

2025-01-19

This file (Actor.php) appears to be completely unused at this point; here is the entire remaining contents of the file (now deleted):

<?php namespace Woozalia\Futil;
/**
 * HISTORY:
    2024-10-15 created
    2024-11-19 tentatively, this is unused
*/

interface iActor {
    function Go();
}
abstract class caActor implements iActor {
}

2024-11-08

#
    public function __construct(array $arCmdArgs) {
        $this->SingletonSetup();
        $this->CheckSetup();
        self::GotToHere();

        // CheckSetup() exits if this hasn't been set, so now we can use it:
        $csOpts = Globals::QOptsClass()->GetIt();
        $this->oOpts = new $csOpts($arCmdArgs);
    }

...

#
    // NEW (CLI only) - was originally a separate thing, but now just does a tighter type-check on the Kiosk
    #protected function Options() : iOpts { return Globals::QKiosk()->GetIt(); }
    // 2024-09-22 Are we still using this? It's the same as Globals::QKiosk()->GetIt()
    private $oOpts;
    protected function Options() : iOpts { return $this->oOpts ?? ($this->oOpts = $this->NewOptions()); }
    protected function NewOptions() : iOpts {
        $oReq = $this->Request();
        #echo $oReq->ReflectObject()->Report();
        $oReqIn = $oReq->MainInput();
        #echo $oReqIn->ReflectObject()->Report();
        #$oaIn = $oReqIn->Dadex();
        #echo $oaIn->ReflectObject()->Report();
        $oOpts = ($this->OptionsClass())::FromInReq($oReqIn);
        return $oOpts;
    }