Ferreteria/v0.5/@cls/data/card/cK1I: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Jump to navigation Jump to search
No edit summary
Line 38: Line 38:
* '''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 KeyNane(): use KeySlug()
*** function KeyName(): use KeySlug()

Revision as of 13:13, 26 February 2023

class ferret\data\card\cK1I

caCard
taForObject
tLoggableCard

cK1I

cCalc

About

  • Purpose: data with a single int key
  • Assumes: int values do not need to be sanitized

Methods

current as of 2023-02-25

  • 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
    • public function DoUpdate(array $arChg) : FD\cUpdateStatus
    • public function DoUpdateChanged() : FD\cUpdateStatus

History

  • 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()