Ferreteria/v0.5/@cls/data/card/cK1I

From Woozle Writes Code
< Ferreteria‎ | v0.5‎ | @cls
Revision as of 18:48, 25 March 2023 by Woozle (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
class ferret\data\card\cK1I

caBase
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-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(); }

fields: calc

  • public function IsNew() : bool { return $this->KeyCell()->IsBlank(); }
  • protected function GetSelfFilter() : string

fields: write

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