Ferreteria/v0.6/clade/Sys/Events/ItWent: Difference between revisions
< Ferreteria | v0.6 | clade | Sys | Events
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
{{page/clade | {{page/clade/v2 | ||
|fam= | |||
! | {{!}} align=right {{!}} {{l/ver/clade|Aux|StandardBase}} | ||
{{!}} align=center {{!}} → '''ItWent''' | |||
{{!}} | |||
→ {{l/ver/clade|Sys\Events\ItWent|CommOp}}<br> | → {{l/ver/clade|Sys\Events\ItWent|CommOp}}<br> | ||
→ {{l/ver/clade|Sys\Events\ItWent|ReadOp}} | → {{l/ver/clade|Sys\Events\ItWent|ReadOp}} | ||
|alia= | |||
{{!-!}} '''Base'''* || {{l/ver/clade/full|p=ferreteria|Aux|StandardBase}} | |||
! | {{!-!}} '''Msg'''* || {{l/ver/clade/full|p=ferreteria|Sys\Events|Message}} | ||
! | |||
}} | |||
==About== | ==About== | ||
* '''purpose''': an object that can report status and any related messages (usually errors or warnings) resulting from an attempted action, i.e. "how it went" | * '''purpose''': an object that can report status and any related messages (usually errors or warnings) resulting from an attempted action, i.e. "how it went" | ||
Any object can make use of this feature via the <code>{{l/ver/clade/full|Sys/Events/has|ItWent}}</code> iface/trait. | Any object can make use of this feature via the <code>{{l/ver/clade/full|Sys/Events/has|ItWent}}</code> iface/trait. | ||
==Pages== | |||
* [[/@history]] | |||
==Code== | ==Code== | ||
''as of 2025-10- | ''as of 2025-10-26'' | ||
{{fmt/php/block|1= | {{fmt/php/block|1= | ||
interface iItWent extends BaseIface { | interface iItWent extends BaseIface { | ||
| Line 73: | Line 64: | ||
} | } | ||
public function GetOkay() : bool { | public function GetOkay() : bool { | ||
if ($this->isTried | if ($this->isTried || $this->isOkay) { | ||
return $this->isOkay; | return $this->isOkay; | ||
} else { | } else { | ||
| Line 122: | Line 113: | ||
$sOut = $oScrn->ErrorIt('Error report'); | $sOut = $oScrn->ErrorIt('Error report'); | ||
if ($this->HasError()) { | if ($this->HasError()) { | ||
$ftErNum = $oScrn->BoldIt($this-> | $ftErNum = $oScrn->BoldIt($this->GetError()); | ||
$sOut .= " code $ftErNum.".CRLF; | $sOut .= " code $ftErNum.".CRLF; | ||
} else { | } else { | ||
$sOut .= ':'.CRLF; | $sOut .= ':'.CRLF; | ||
| Line 143: | Line 134: | ||
// -- RESULT -- // | // -- RESULT -- // | ||
} | } | ||
}} | }} | ||
Revision as of 21:00, 26 October 2025
| |||||||||||||
About
- purpose: an object that can report status and any related messages (usually errors or warnings) resulting from an attempted action, i.e. "how it went"
Any object can make use of this feature via the Sys\Events\has\ItWent iface/trait.
Pages
Code
as of 2025-10-26