Saveable class
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.
Common
Name | Return | Summary | |
---|---|---|---|
Saveable::getTableData() Saveable::getTableData() Saveable::getTableData() | array | Get an array of this item's saveable data, should match exact with the table it saves in | |
Saveable::save() Saveable::save() Saveable::save() | None | Save the object's current state to database. |
Properties
Name | Return | Summary | Default |
---|---|---|---|
Saveable::id | int | ||
Saveable::name | string |
API reference based on ProcessWire core version 3.0.251