$roles

Provides management of all Role pages for access control.

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

Show $var?     Show args?       Only hookable?    

Common

NameReturnSummary 
$roles->deleted(Page $page)
NoneHook called when a page and its data have been deleted
$roles->find($selector)
PageArrayReturn the Role(s) matching the the given selector.
$roles->get(string $selectorString)
Role NullPage nullGet a Role by name, numeric ID or selector 
$roles->new()
RoleCreate new Role instance in memory 3.0.249+

For hooks

These methods are only useful for hooking and should not be called directly.

Additional methods and properties

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

API reference based on ProcessWire core version 3.0.251