Ferreteria/v0.6/fx/WithItemValue

From Woozle Writes Code
< Ferreteria‎ | v0.6‎ | fx
Revision as of 22:54, 17 November 2025 by Woozle (talk | contribs) (Created page with "{{page/fx}} ==About== * '''Action''': initializes a newly-created object with an <code>{{l/ver/clade|Sys\Events|InputItem}}</code> object and the string to be processed by it * '''Calls''': ** <code>{{l/ver/fx|Item}}()</code> - saves the InputItem object ** <code>{{l/ver/fx|ParseInputString}}()</code> - parses/handles the corresponding input string ==Code== ''as of {{fmt/date|2025|11|17}}:'' {{fmt/php/block|1=# protected function WithItemValue(ItemIface $oItem, strin...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

About

  • Action: initializes a newly-created object with an InputItem object and the string to be processed by it
  • Calls:
    • Item() - saves the InputItem object
    • ParseInputString() - parses/handles the corresponding input string

Code

as of 2025-11-17:

#
    protected function WithItemValue(ItemIface $oItem, string $sValue) : void {
        $this->Item($oItem);
        $this->ParseInputString($sValue);
    }