WireSaveableItems::added() WireSaveableItems::added(Saveable $item) WireSaveableItems::added(Saveable $item) | (nothing) | Hook that runs right after a new item has been added. | |
WireSaveableItems::clone() WireSaveableItems::clone(Saveable $item) WireSaveableItems::clone(Saveable $item, string $name = '') | bool Saveable | Create and return a cloned copy of this item | |
WireSaveableItems::cloneReady() WireSaveableItems::cloneReady(Saveable $item, Saveable $copy) WireSaveableItems::cloneReady(Saveable $item, Saveable $copy) | (nothing) | Hook that runs right before item is to be cloned. | |
WireSaveableItems::cloned() WireSaveableItems::cloned(Saveable $item, Saveable $copy) WireSaveableItems::cloned(Saveable $item, Saveable $copy) | (nothing) | Hook that runs right after an item has been cloned. | |
WireSaveableItems::delete() WireSaveableItems::delete(Saveable $item) WireSaveableItems::delete(Saveable $item) | bool | Delete the provided item from the database | |
WireSaveableItems::deleteReady() WireSaveableItems::deleteReady(Saveable $item) WireSaveableItems::deleteReady(Saveable $item) | (nothing) | Hook that runs right before item is to be deleted. | |
WireSaveableItems::deleted() WireSaveableItems::deleted(Saveable $item) WireSaveableItems::deleted(Saveable $item) | (nothing) | Hook that runs right after an item has been deleted. | |
WireSaveableItems::error() WireSaveableItems::error(string $text) WireSaveableItems::error(string $text, $flags = 0) | Wire WireSaveableItems | Record an error | |
WireSaveableItems::find() WireSaveableItems::find($selectors) WireSaveableItems::find($selectors) | WireArray | Find items based on Selectors or selector string | |
WireSaveableItems::get() WireSaveableItems::get($key) WireSaveableItems::get($key) | array mixed null Page Saveable Wire WireData | Get an item | |
WireSaveableItems::getAll() WireSaveableItems::getAll() WireSaveableItems::getAll() | WireArray | Return the WireArray that this DAO stores it's items in | |
WireSaveableItems::getIterator() WireSaveableItems::getIterator() WireSaveableItems::getIterator() | (nothing) | | |
WireSaveableItems::getSort() WireSaveableItems::getSort() WireSaveableItems::getSort() | string | Return the default name of the field that load() should sort by (default is none) | |
WireSaveableItems::getTable() WireSaveableItems::getTable() WireSaveableItems::getTable() | string | Return the name of the table that this DAO stores item records in | |
WireSaveableItems::has() WireSaveableItems::has($item) WireSaveableItems::has($item) | bool | Do we have the given item or item by given key? | |
WireSaveableItems::load() WireSaveableItems::load(WireArray $items) WireSaveableItems::load(WireArray $items, $selectors = null) | WireArray | | |
WireSaveableItems::log() WireSaveableItems::log($str) WireSaveableItems::log($str, $item = null) | WireLog | Save to activity log, if enabled in config | |
WireSaveableItems::makeBlankItem() WireSaveableItems::makeBlankItem() WireSaveableItems::makeBlankItem() | Saveable Wire | Return a new blank item | |
WireSaveableItems::makeItem() WireSaveableItems::makeItem() WireSaveableItems::makeItem(array $a = []) | Saveable WireData Wire | Make an item and populate with given data | |
WireSaveableItems::renameReady() WireSaveableItems::renameReady(Saveable $item, string $oldName, string $newName) WireSaveableItems::renameReady(Saveable $item, string $oldName, string $newName) | (nothing) | Hook that runs right before item is to be renamed. | |
WireSaveableItems::renamed() WireSaveableItems::renamed(Saveable $item, string $oldName, string $newName) WireSaveableItems::renamed(Saveable $item, string $oldName, string $newName) | (nothing) | Hook that runs right after an item has been renamed. | |
WireSaveableItems::save() WireSaveableItems::save(Saveable $item) WireSaveableItems::save(Saveable $item) | bool | Save the provided item to database | |
WireSaveableItems::saveReady() WireSaveableItems::saveReady(Saveable $item) WireSaveableItems::saveReady(Saveable $item) | (nothing) | Hook that runs right before item is to be saved. | |
WireSaveableItems::saved() WireSaveableItems::saved(Saveable $item) WireSaveableItems::saved(Saveable $item, array $changes = []) | (nothing) | Hook that runs right after an item has been saved. | |
WireSaveableItems::useFuel() WireSaveableItems::useFuel() WireSaveableItems::useFuel($useFuel = null) | bool | Enforce no locally-scoped fuel for this class | |
WireSaveableItems::useLazy() WireSaveableItems::useLazy() WireSaveableItems::useLazy() | bool | Use lazy loading for this type? | |