ModulesFlags::moduleFlags() method

Get or set flags for module by module ID

Omit all arguments to get flags for all modules indexed by module ID.

Returns null if given module ID not found.

Usage

// basic usage
$array = $modulesFlags->moduleFlags();

// usage with all arguments
$array = $modulesFlags->moduleFlags(int $moduleID = null, int $setValue = null);

Arguments

NameType(s)Description
moduleID (optional)int

This method only accepts module ID

setValue (optional)int

Flag(s) to set

Return value

array mixed null


ModulesFlags methods and properties

API reference based on ProcessWire core version 3.0.244

Latest news

  • ProcessWire Weekly #563
    In the 563rd issue of ProcessWire Weekly we will share the latest weekly update from Ryan, as well as the latest news and updates from the ProcessWire community. Read on!
    Weekly.pw / 22 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“Indeed, if ProcessWire can be considered as a CMS in its own right, it also offers all the advantages of a CMF (Content Management Framework). Unlike other solutions, the programmer is not forced to follow the proposed model and can integrate his/her ways of doing things.” —Guy Verville, Spiria Digital Inc.