Ferreteria/v0.5/@cls/data/card/cK1I: Difference between revisions
< Ferreteria | v0.5 | @cls
Jump to navigation
Jump to search
m (→History) |
No edit summary |
||
Line 6: | Line 6: | ||
{{l/ver/class|ns=uri|taForObject}}<br> | {{l/ver/class|ns=uri|taForObject}}<br> | ||
{{l/ver/class|ns=data/evlog|tLoggableCard}} | {{l/ver/class|ns=data/evlog|tLoggableCard}} | ||
| → | | → | ||
| | | | ||
Line 19: | Line 18: | ||
* '''Assumes''': int values do not need to be sanitized | * '''Assumes''': int values do not need to be sanitized | ||
==Methods== | ==Methods== | ||
''current as of 2023-02- | ''current as of 2023-02-26'' | ||
* INTERNAL SERVICES | * INTERNAL SERVICES | ||
** protected function KeyName() : string { return $this->Spec()->KeyName(); } | ** protected function KeyName() : string { return $this->Spec()->KeyName(); } | ||
Line 33: | Line 32: | ||
** public function IsNew() : bool { return $this->KeyCell()->IsBlank(); } | ** public function IsNew() : bool { return $this->KeyCell()->IsBlank(); } | ||
** protected function GetSelfFilter() : string | ** protected function GetSelfFilter() : string | ||
** | ** protected function {{l/ver/class/method|data/card/cK1I|DoUpdate}}(array $arChg) : FD\cUpdateStatus | ||
** public function | ** public function {{l/ver/class/method|data/card/cK1I|WriteChanges}}() : FD\cUpdateStatus | ||
==History== | ==History== | ||
* '''2023-02-26''' a bit of refactoring to try and fix some caching issues: changes to <code>{{l/sub|DoUpdate}}()</code>, <code>{{l/sub|WriteChanges}}()</code> | |||
* '''2022-03-27''' consolidating tStorageK1I, which was being used for Storage Rows which really have no business operating on individual row data. | * '''2022-03-27''' consolidating tStorageK1I, which was being used for Storage Rows which really have no business operating on individual row data. | ||
** Replacements: | ** Replacements: | ||
*** function KeyName(): use KeySlug() | *** function KeyName(): use KeySlug() |
Revision as of 13:54, 26 February 2023
→ | → |
- Source: data/fields/card/k1i/base.php
About
- Purpose: data with a single int key
- Assumes: int values do not need to be sanitized
Methods
current as of 2023-02-26
- INTERNAL SERVICES
- protected function KeyName() : string { return $this->Spec()->KeyName(); }
- FIELDS: READ
- public function KeyCell() : F\status\cVar
- public function KeyValue() : int
- public function KeyMatches(int $id) : bool
- protected function HasKey() : bool
- protected function HasIdentity() : bool { return $this->HasKey(); }
- public function IdentityValues() : array
- protected function KeySlug() : string { return $this->KeyCell()->GetIt(); }
- FROM TRAIT, to be consolidated
- public function IsNew() : bool { return $this->KeyCell()->IsBlank(); }
- protected function GetSelfFilter() : string
- protected function DoUpdate(array $arChg) : FD\cUpdateStatus
- public function WriteChanges() : FD\cUpdateStatus
History
- 2023-02-26 a bit of refactoring to try and fix some caching issues: changes to
DoUpdate()
,WriteChanges()
- 2022-03-27 consolidating tStorageK1I, which was being used for Storage Rows which really have no business operating on individual row data.
- Replacements:
- function KeyName(): use KeySlug()
- Replacements: