Pages Access

Maintains the pages_access table which serves as a way to line up pages to the templates that maintain their access roles.

This class serves as a way for PageFinder to determine if a user has access to a page before actually loading it.

The pages_access table contains just two columns:

  • pages_id (int): Any given page
  • templates_id (int): The template that sets this pages access

Pages using templates that already define their access (determined by $template->useRoles) are omitted from the pages_access table, as they aren't necessary.


Click any linked item for full usage details and examples. Hookable methods are indicated with the icon. In addition to those shown below, the PagesAccess class also inherits all the methods and properties of: Wire.

Show class?     Show args?       Only hookable?    

Common

NameReturnSummary 
PagesAccess::deletePage(Page $page)
None

Delete a page from the pages_access table

 
PagesAccess::updatePage(Page $page)
None

Save to pages_access table to indicate what template each page is getting its access from

PagesAccess::updateTemplate(Template $template)
None

Update the pages_access table for the given Template

Additional methods and properties

In addition to the methods and properties above, PagesAccess also inherits the methods and properties of these classes:

API reference based on ProcessWire core version 3.0.252