Saveable

For classes that are saved to a database or disk.

Item must have a gettable/settable 'id' property for this interface as well


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
Saveable::getTableData()
array

Get an array of this item's saveable data, should match exact with the table it saves in

 
Saveable::save()
None

Save the object's current state to database.

 

Properties

NameReturnSummary 
Saveable::id int 
Saveable::name string 

API reference based on ProcessWire core version 3.0.264