1. Home
  2. Docs
  3. Function Reference
  4. Classes
  5. Admin
  6. MVC Admin Settings Helper
  7. get_settings_by_prefix()

get_settings_by_prefix()

Get rows from a Simpods MVC settings table by prefix.

Copy to Clipboard

Parameters

$table_str

Name of table (without table_prefix)

$prefix_str

Prefix of setting name

$user_int

Not used (for user settings only)

Return

array

Associate array of row objects keyed by name

Example

Get all settings from the simpods_example_settings table that have a name beginning with default_

Copy to Clipboard
Tags