SproutCMS

This is the code documentation for the SproutCMS project

function pagesWithWidget()

Find pages with a given widget, and optionally the specified settings.
Only widgets on live revisions of active pages are checked.

Usage

array Page::pagesWithWidget ( string $widget_name , array $settings );

Arguments

  1. string $widget_name
    $class The class of the desired widget.
  2. array $settings
    The settings to look for; all of the specified settings must match.

Exceptions thrown

  • QueryException

Return value

  • array
    Page IDs