Ferreteria/v2/usage/db/records: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v2‎ | usage‎ | db
Jump to navigation Jump to search
(saving work for now)
 
(saving work)
Line 9: Line 9:
** <code>public function Insert(array $arData)</code>
** <code>public function Insert(array $arData)</code>
** <code>public function Update(array $arChg,$sqlWhere,$isNativeData=FALSE)</code>
** <code>public function Update(array $arChg,$sqlWhere,$isNativeData=FALSE)</code>
* <code>trait ftSaveableRecord</code>
** <code>protected function TouchField($sKey)</code>
** <code>protected function TouchedArray()</code>
** <code>ChangeFieldValues(array $ar)</code>
** <code>GetStorableValues_Changed()</code>
** <code>GetStorableValues_toInsert()</code> defaults to <code>GetStorableValues_Changed()</code>
** <code>GetStorableValues_toUpdate()</code> defaults to <code>GetStorableValues_Changed()</code>
** <code>GetInsertStorageOverrides()</code> defaults to array()
** <code>GetUpdateStorageOverrides()</code> defaults to array()
** <code>SetFieldValue($sKey,$val)</code> adds call to TouchField()
** <code>Save($arSave=NULL)</code>

Revision as of 14:00, 20 February 2018

The routines for writing data from a recordset object back to the database are simple by default but can be overridden in several ways behind the scenes.

documentation in progress

Method Index

  • ftName_forTable
    • protected function FigureSQL_forInsert(array $arData)
    • public function FigureSQL_forUpdate(array $arChg,$sqlWhere,$isNativeData=self::KFMT_NATIVE)
  • trait ftWriteableTable
    • public function Insert(array $arData)
    • public function Update(array $arChg,$sqlWhere,$isNativeData=FALSE)
  • trait ftSaveableRecord
    • protected function TouchField($sKey)
    • protected function TouchedArray()
    • ChangeFieldValues(array $ar)
    • GetStorableValues_Changed()
    • GetStorableValues_toInsert() defaults to GetStorableValues_Changed()
    • GetStorableValues_toUpdate() defaults to GetStorableValues_Changed()
    • GetInsertStorageOverrides() defaults to array()
    • GetUpdateStorageOverrides() defaults to array()
    • SetFieldValue($sKey,$val) adds call to TouchField()
    • Save($arSave=NULL)