InputfieldWrapper::getAll() method

Get all Inputfields below this recursively in a flat InputfieldWrapper (children, and their children, etc.)

Note that all InputfieldWrapper instances are removed as a result (except for the containing InputfieldWrapper).

Usage

// basic usage
$inputfieldWrapper = $inputfieldWrapper->getAll();

// usage with all arguments
$inputfieldWrapper = $inputfieldWrapper->getAll(array $options = []);

Arguments

NameType(s)Description
options (optional)array

Options to modify behavior (3.0.169+)

  • withWrappers (bool): Also include InputfieldWrapper objects? (default=false) 3.0.169+

Return value

InputfieldWrapper InputfieldsArray


InputfieldWrapper methods and properties

API reference based on ProcessWire core version 3.0.200

Twitter updates

  • A review of weekly core updates, plus a simple recipe for a very effective listing cache—More
    24 June 2022
  • Weekly update: Making ProcessWire render pages at old WordPress URLs (or building a simple/custom URL router in PW): More
    17 June 2022
  • New post: ProcessWire now comes with just 1 site installation profile, the "blank" profile. It makes very few assumptions, making it a minimal though excellent starting point. Here’s how you might use it— More
    10 June 2022

Latest news

  • ProcessWire Weekly #424
    In the 424th issue of ProcessWire Weekly we'll check out the latest weekly update from Ryan, introduce a new third party module, and more. Read on!
    Weekly.pw / 25 June 2022
  • Starting a site with the “blank” profile
    ProcessWire 3.0.200+ comes with just 1 site installation profile, the site-blank profile. This profile makes very few assumptions, making it a minimal though excellent starting point. Here’s how you might use it. 
    Blog / 10 June 2022
  • Subscribe to weekly ProcessWire news

“ProcessWire is like a breath of fresh air. So powerful yet simple to build with and customise, and web editors love it too.” —Margaret Chatwin, Web developer