Ferreteria/v0.6/clade/Sys/FileSys/Node/Fi: Difference between revisions
Jump to navigation
Jump to search
(Created page with "{{page/clade}} {| style="border: 1px solid black; float: right;" ! colspan=3 | Clade Family |- | align=right | {{l/ver/clade|Sys\FileSys|Node}} | → {{l/ver/clade|Sys\FileSys\Node|Fi}} |- | align=right | '''Related''': || {{l/same|Fo}} |}") |
No edit summary |
||
| Line 1: | Line 1: | ||
{{page/clade | {{page/clade/v2 | ||
|fam= | |||
! | {{!}} align=right {{!}} {{l/ver/clade|Sys\FileSys|Node}} | ||
{{!}} align=center {{!}} → {{l/ver/clade|Sys\FileSys\Node|Fi}} | |||
{{!}} → {{l/ver/clade|Sys\Data\aux\meta|InOut}} | |||
|- | |alia= | ||
| | {{!}}- | ||
|} | {{!}} '''Base'''* [c,i] {{!!}} {{l/ver/clade/full|p=ferreteria|Sys\FileSys|Node}} | ||
{{!}}- | |||
{{!}} '''Ident'''* [c] {{!!}} {{l/ver/clade/full|p=ferreteria|Sys\FileSys\Aspect\Ident|Fi}} | |||
{{!}}- | |||
{{!}} '''InOut'''* [c] {{!!}} {{l/ver/clade/full|p=ferreteria|Sys\FileSys\Aspect\InOut|Fi}} | |||
}} | |||
==Related== | |||
* {{l/same|Fo}}: folder node | |||
==Code== | |||
''as of 2025-10-06'' | |||
{{fmt/php/block|1= | |||
interface iFi extends BaseIface {} | |||
class cFi extends BaseClass implements iFi { | |||
// ++ CONFIG ++ // | |||
protected function IdentClass() : string { return IdentClass::class; } | |||
protected function InOutClass() : string { return InOutClass::class; } | |||
// -- CONFIG -- // | |||
// ++ SETUP ++ // | |||
// OVERRIDE: Assume $fs is (or will be) a file, and this has been invoked via the class we want. | |||
static public function FromSpec(string $fs) : BaseIface { | |||
$oThis = new static; | |||
$oThis->Ident()->QSFullSpec()->SetIt($fs); | |||
return $oThis; | |||
} | |||
// -- SETUP -- // | |||
// ++ INFO ++ // | |||
public function Size() : int{{!}}false { return filesize($this->Ident()->SpecFull()); } | |||
// -- INFO -- // | |||
} | |||
}} | |||
Latest revision as of 00:40, 7 October 2025
| ||||||||||||||||||
Related
- Fo: folder node
Code
as of 2025-10-06
interface iFi extends BaseIface {}
class cFi extends BaseClass implements iFi {
// ++ CONFIG ++ //
protected function IdentClass() : string { return IdentClass::class; }
protected function InOutClass() : string { return InOutClass::class; }
// -- CONFIG -- //
// ++ SETUP ++ //
// OVERRIDE: Assume $fs is (or will be) a file, and this has been invoked via the class we want.
static public function FromSpec(string $fs) : BaseIface {
$oThis = new static;
$oThis->Ident()->QSFullSpec()->SetIt($fs);
return $oThis;
}
// -- SETUP -- //
// ++ INFO ++ //
public function Size() : int|false { return filesize($this->Ident()->SpecFull()); }
// -- INFO -- //
}