Ferreteria/v0.5/@cls/cArgs

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Revision as of 12:52, 28 July 2022 by Woozle (talk | contribs)
Jump to navigation Jump to search
Ferreteria class ferret\arr\cArgs
[ cLocal > ] cArgs

ferret\layout\html\tag\cAttributes
ferret\data\cDataOpResult
ferret\menu\cNav

About

  • Purpose: an array of Status objects
    • If a cell has a value, that value is the Status object.
    • The value ultimately being stored is the Status object's value.
    • So, yeah, you'll end up with double-references: [array]->GetCell(name)->GetIt()->GetIt(), etc.

cArgs uses cLocal for a private object, but does not descend from it.

History

  • 2022-06-11 Replacing old cArgs with, basically, cResults (later removed)
    • ... but keeping separate cArgs class in case additional functionality is needed.
  • 2022-06-12
    • moved Results and Args from data/result/base.php to util/array/legacy/status.php (for now)
    • pulling in bits from the retired version as they come up.
      • It seems likely this should be in a menu-related namespace, since that is how it is used.
  • 2022-06-15 added CellClasses() (ability to predefine different status classes for specific named elements)