Futilities/v0.6/clade/Actor
< Futilities | v0.6 | clade
Jump to navigation
Jump to search
|
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;
}