SproutCMS

This is the code documentation for the SproutCMS project

function pagesWithAttr()

Returns an array pages which contain a given attribute.

Usage

array Page::pagesWithAttr ( string $attr_name [, string $attr_value ] );

Arguments

  1. string $attr_name
    Attribute name to search for
  2. string $attr_value = NULL
    If set, require the attribute to be this value

Exceptions thrown

  • QueryException

Return value

  • array
    Page IDs