Ferreteria/v0.3/class/cIOSource standard table: Difference between revisions

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
No edit summary
m (8 revisions imported: moving this project here)
 
(6 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{page/obsolete|ferreteria}}
<source lang=php>
<source lang=php>
// PURPOSE: standard db table source with a single "ID" key
// PURPOSE: standard db table source with a single "ID" key
Line 11: Line 12:
}
}
</source>
</source>
* '''file''': <code>/data/sources/source-db.php</code>
* '''replaced by''': {{l/ferreteria/class|cStandardTable}}
* '''file''': <s>{{l/ferreteria/file|data/sources/source-db.php}}</s>
* '''extends''': {{l/ferreteria/class|cIOSource_db_keyed}}
* '''extends''': {{l/ferreteria/class|cIOSource_db_keyed}}
* '''uses''':
* '''uses''':
Line 20: Line 22:
** {{l/ferreteria/class|fctUserSessions}}
** {{l/ferreteria/class|fctUserSessions}}
** {{l/ferreteria/class|ctPlex_EventTable}}
** {{l/ferreteria/class|ctPlex_EventTable}}
** [[FinanceFerret]]:
*** '''{{l/financeferret/class|fctUserAccts}}''' extends ferreteria\data\cIOSource_standard_table
*** '''{{l/financeferret/class|fctUserClients}}''' extends ferreteria\data\cIOSource_standard_table
*** '''{{l/financeferret/class|fctUserPerms}}''' extends ferreteria\data\cIOSource_standard_table
*** '''{{l/financeferret/class|ctAccts}}''' extends \ferreteria\data\cIOSource_standard_table
*** '''{{l/financeferret/class|ctTxTypes}}''' extends \ferreteria\data\cIOSource_standard_table
*** '''{{l/financeferret/class|ctTrxts}}''' extends \ferreteria\data\cIOSource_standard_table

Latest revision as of 16:43, 22 May 2022

Template:Page/obsolete

// PURPOSE: standard db table source with a single "ID" key
abstract class cIOSource_standard_table extends cIOSource_db_keyed {
    use tSelectable_Source_simple;
    use tInsertable_Source;
    use tUpdateable_Source;

    public function GetKeyName() { return 'ID'; }
    protected function SourceString_forSelect() // returns TableName()
    abstract protected function TableName();
}