WireSaveableItems class

Located in file /wire/core/WireSaveableItems.php

Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the WireSaveableItems class also inherits all the methods and properties of: Wire.

Show class?             Show args?        

Common

NameReturnSummary 
WireSaveableItems::added(Saveable $item)
(nothing)Hook that runs right after a new item has been added.
WireSaveableItems::clone(Saveable $item)
bool SaveableCreate and return a cloned copy of this item
WireSaveableItems::cloneReady(Saveable $item, Saveable $copy)
(nothing)Hook that runs right before item is to be cloned.
WireSaveableItems::cloned(Saveable $item, Saveable $copy)
(nothing)Hook that runs right after an item has been cloned.
WireSaveableItems::delete(Saveable $item)
boolDelete the provided item from the database
WireSaveableItems::deleteReady(Saveable $item)
(nothing)Hook that runs right before item is to be deleted.
WireSaveableItems::deleted(Saveable $item)
(nothing)Hook that runs right after an item has been deleted.
WireSaveableItems::error(string $text)
Wire WireSaveableItemsRecord an error
WireSaveableItems::find($selectors)
WireArrayFind items based on Selectors or selector string
WireSaveableItems::get($key)
array mixed null Page Saveable Wire WireDataGet an item 
WireSaveableItems::getAll()
WireArrayReturn the WireArray that this DAO stores it's items in 
WireSaveableItems::getIterator()
(nothing) 
WireSaveableItems::getSort()
stringReturn the default name of the field that load() should sort by (default is none) 
WireSaveableItems::getTable()
stringReturn the name of the table that this DAO stores item records in 
WireSaveableItems::has($item)
boolDo we have the given item or item by given key? 
WireSaveableItems::load(WireArray $items)
WireArray
WireSaveableItems::log($str)
WireLogSave to activity log, if enabled in config 
WireSaveableItems::makeBlankItem()
Saveable WireReturn a new blank item 
WireSaveableItems::makeItem()
Saveable WireData WireMake an item and populate with given data 
WireSaveableItems::renameReady(Saveable $item, string $oldName, string $newName)
(nothing)Hook that runs right before item is to be renamed.
WireSaveableItems::renamed(Saveable $item, string $oldName, string $newName)
(nothing)Hook that runs right after an item has been renamed.
WireSaveableItems::save(Saveable $item)
boolSave the provided item to database
WireSaveableItems::saveReady(Saveable $item)
(nothing)Hook that runs right before item is to be saved.
WireSaveableItems::saved(Saveable $item)
(nothing)Hook that runs right after an item has been saved.
WireSaveableItems::useFuel()
boolEnforce no locally-scoped fuel for this class 
WireSaveableItems::useLazy()
boolUse lazy loading for this type? 

Additional methods and properties

In addition to the methods and properties above, WireSaveableItems also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.236

Latest news

  • ProcessWire Weekly #519
    In the 519th issue of ProcessWire Weekly we'll check out a new third party module called RockForms, introduce the latest ProcessWire core updates, and more. Read on!
    Weekly.pw / 20 April 2024
  • ProFields Table Field with Actions support
    This week we have some updates for the ProFields table field (FieldtypeTable). These updates are primarily focused on adding new tools for the editor to facilitate input and management of content in a table field.
    Blog / 12 April 2024
  • Subscribe to weekly ProcessWire news

I just love the easy and intuitive ProcessWire API. ProcessWire rocks!” —Jens Martsch, Web developer