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

From Woozle Writes Code
< Ferreteria‎ | v0.3‎ | class
Jump to navigation Jump to search
m (page template)
No edit summary
Line 12: Line 12:
}
}
</source>
</source>
* '''file''': <code>/data/sources/source-db.php</code>
* '''file''': {{l/ferreteria/file|data/sources/source-db.php}}
* '''extends''': {{l/ferreteria/class|cIOSource_db_keyed}}
* '''extends''': {{l/ferreteria/class|cIOSource_db_keyed}}
* '''uses''':
* '''uses''':

Revision as of 21:33, 29 December 2018

Template:Page/code/class

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