Ferreteria/v0.6/clade/Sys/FileSys/Aspect/Ident/stringer/Chain/@removed/Nested/Named/Cap
< Ferreteria | v0.6 | clade | Sys | FileSys | Aspect | Ident | stringer | Chain | @removed | Nested | Named
Jump to navigation
Jump to search
|
Retired Clade:
Sys\FileSys\Aspect\Ident\stringer\Chain\Nested\Named\Cap |
2025-12-15
/**::::
PURPOSE: segment of a Path, but also provides an API to the entire parent-path
from which it dangles; it's the "cap" to a path
NOTE: "base" in this context means "parent folder", not the root-base of the whole path.
HISTORY:
2023-11-03 moved from ...\File\cPathCap -> ...\File\Path\cCap
2024-12-24 moved from [WF]Data/Stored/File/Path -> [WF]IO/fsys/Path/Piece/Based/Named
2024-12-31 moved again, renamed, reparented; see Chain.
*/
#use Woozalia\Ferret\Sys\Data\Request\iUser as UserReqIface;
// stringer namespace
use Woozalia\Ferret\Sys\FileSys\Aspect\Ident\stringer\{
iChain as ChainIface,
Chain\Nested\cNamed as BaseClass,
Chain\Nested\iNamed as BaseIface,
Chain\Nested\Named\iCap as SelfIface,
};
interface iCap extends BaseIface {
#function AddToRequest(UserReqIface $oReq) : void;
}
class cCap extends BaseClass implements SelfIface {
protected function __construct(){}
/* 2024-12-31 should probably be FromBaseAndName(), ocelot
public function __construct(string $sName, caPiece $oBase) {
$this->SetName($sName);
$this->SetBase($oBase);
}
*/
/* 2025-11-03 This API method appears to be unused.
public function AddToRequest(UserReqIface $oReq) : void {
$fsRel = $this->GetPath();
echo self::CodingPrompt('This appears to be unfinished.');
}
*/
}