Ferreteria/v0.6/clade/Sys/Events/ItWent: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | clade‎ | Sys‎ | Events
Jump to navigation Jump to search
(Created page with "{{page/clade}} {| style="border: solid 1px black; float: right;" ! colspan=3 | Clade Family |- | align=right | {{l/ver/clade|Aux|StandardBase}} | → '''ItWent''' | → {{l/ver/clade|Sys\Events\ItWent|CommOp}}<br> → {{l/ver/clade|Sys\Events\ItWent|ReadOp}} |} ==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"")
 
No edit summary
Line 11: Line 11:
==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"
==Functions==
===public===
// SETUP
    static function AsNoOp() : self;
// ACTION
    function WasTried() : bool;
    function SetOkay(bool $ok);
    function GetOkay() : bool;
    function SetNoOp();
    function GetStatusText() : string;
// MESSAGES
    function AllMessages() : array; // mainly diagnostic
    function AnyMessages() : bool;
    function AddMsgObject(MsgIface $o) : void;
    function AddMsgString(string $s) : void;
    function RenderMessages() : string;
// ERRORS
    function HasError() : bool;
    function AddError(int $n, string $s);

Revision as of 12:14, 27 August 2025

clade: Sys\Events\ItWent
Clade Family
StandardBase ItWent

CommOp
ReadOp

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"

Functions

public

// SETUP

   static function AsNoOp() : self;

// ACTION

   function WasTried() : bool;
   function SetOkay(bool $ok);
   function GetOkay() : bool;
   function SetNoOp();
   function GetStatusText() : string;

// MESSAGES

   function AllMessages() : array; // mainly diagnostic
   function AnyMessages() : bool;
   function AddMsgObject(MsgIface $o) : void;
   function AddMsgString(string $s) : void;
   function RenderMessages() : string;

// ERRORS

   function HasError() : bool;
   function AddError(int $n, string $s);