Ferreteria/v0.5/@cls/cArgs: Difference between revisions
< 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}} & | | [ {{l/ver/class|cLocal}} > ] | ||
| {{l/ver/class|cArgs}} | | {{l/ver/class|cArgs}} | ||
| | | | ||
Line 15: | Line 15: | ||
** The value ultimately being stored is the Status object's value. | ** 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. | ** 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-06-11''' Replacing old cArgs with, basically, cResults (later removed) |
Revision as of 12:52, 28 July 2022
[ cLocal > ] | cArgs |
→ ferret\layout\html\tag\cAttributes |
- Source: util/array/args.php
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)