Ferreteria/v0.6/clade/IO/Aspect: Difference between revisions
< Ferreteria | v0.6 | clade | IO
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| (3 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{page/clade | {{page/clade/v2 | ||
|fam= | |||
! | {{!}} align=right {{!}} <code>{{l/ver/clade|Aux|StandardBase}}</code> | ||
{{!}} align=center {{!}} ⇒ <code>{{l/ver/clade|IO|Aspect}}</code> ⇒ | |||
{{!}} align=left {{!}} | |||
<code>{{l/ver/clade/full|IO\Aspect|Connx}}</code><br> | |||
<code>{{l/ver/clade/full|IO\Aspect|Creds}}</code><br> | |||
| | <code>{{l/ver/clade/full|IO\Aspect|Host}}</code><br> | ||
<code>{{l/ver/clade/full|IO\Aspect|Socket}}</code><br> | |||
| | <code>{{l/ver/clade/full|Sys/Data/Engine|Ops}}</code> | ||
| | |||
|alia= | |||
! | {{!-!}} '''Base*''' [c,i] {{!!}} <code>{{l/ver/clade|Aux|StandardBase}}</code> | ||
|} | }} | ||
==About== | |||
* '''Purpose''': probably unnecessary abstraction of a piece of an I/O connection | |||
==History== | |||
* '''{{fmt/date|2025|05|27}}''' created | |||
==Functions== | ==Functions== | ||
== | * <code>{{l/ver/fx|DescribeInline}}()</code>: not always needed by podling classes, so stubbed off here as a method-prompt (<code>{{l/ver/fx|PromptForMethod}}()</code>) | ||
==Code== | |||
''as of {{fmt/date|2025|10|22}}:'' | |||
{{fmt/php/block|1= | |||
interface iAspect extends BaseIface { | |||
// UI | // UI | ||
function DescribeInline() : string; | function DescribeInline() : string; | ||
} | |||
trait tAspect { // IMPLEMENTS iAspect | |||
// PROMPT | |||
public function DescribeInline() : string { return self::PromptForMethod(); } // sometimes not needed | |||
} | |||
abstract class caAspect extends BaseClass implements iAspect { | |||
use tAspect; | |||
} | |||
}} | |||
Latest revision as of 03:02, 26 November 2025
| ||||||||||||||
About
- Purpose: probably unnecessary abstraction of a piece of an I/O connection
History
Functions
DescribeInline(): not always needed by podling classes, so stubbed off here as a method-prompt (PromptForMethod())
Code
interface iAspect extends BaseIface {
// UI
function DescribeInline() : string;
}
trait tAspect { // IMPLEMENTS iAspect
// PROMPT
public function DescribeInline() : string { return self::PromptForMethod(); } // sometimes not needed
}
abstract class caAspect extends BaseClass implements iAspect {
use tAspect;
}