Ferreteria/v0.5/@cls/cArgs: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
{| style="border: solid 1px grey; background: #eef;"
{| style="border: solid 1px grey; background: #eef;"
|-
|-
| [ {{l/ver/class|cLocal}} &gt; ]
| {{l/ver/class|cStati}} &rarr;
| {{l/ver/class|cArgs}}
| {{l/ver/class|cArgs}}
|
|
Line 11: Line 11:
* '''Source''': {{l/ferreteria/code|util/array/args.php}}
* '''Source''': {{l/ferreteria/code|util/array/args.php}}
==About==
==About==
* '''Purpose''': an array of Status objects
This is a Status Array ({{l/ver/class|cStati}}) with methods to access a couple of named arguments: '''Name''' and '''Value'''. These names are probably somewhat confusing, and their intent should probably be documented...
** 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.
 
{{l/ver/class|cArgs}} uses {{l/ver/class|cLocal}} for a private object, but does not descend from it.
==History==
==History==
* '''2022-06-11''' Replacing old cArgs with, basically, cResults (later removed)
* '''2022-07-28''' moved all of the generic code (i.e. most of it) into {{l/ver/class|cStati}}
** ... but keeping separate cArgs class in case additional functionality is needed.
* '''2022-06-15''' added CellClasses() (ability to predefine different status classes for specific named elements)
* '''2022-06-12'''
* '''2022-06-12'''
** moved Results and Args from data/result/base.php to util/array/legacy/status.php (for now)
** 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.
** 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.
*** 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)
* '''2022-06-11''' Replacing old cArgs with, basically, cResults (later removed)
** ... but keeping separate cArgs class in case additional functionality is needed.

Latest revision as of 16:32, 28 July 2022

Ferreteria class ferret\arr\cArgs
cStati cArgs

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

About

This is a Status Array (cStati) with methods to access a couple of named arguments: Name and Value. These names are probably somewhat confusing, and their intent should probably be documented...

History

  • 2022-07-28 moved all of the generic code (i.e. most of it) into cStati
  • 2022-06-15 added CellClasses() (ability to predefine different status classes for specific named elements)
  • 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-11 Replacing old cArgs with, basically, cResults (later removed)
    • ... but keeping separate cArgs class in case additional functionality is needed.