Class PagesAccess
ProcessWire 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 template contains just two columns:
- pages_id: Any given page
- templates_id: The template that sets this pages access
Pages using templates that already define their access (determined by $template->useRoles) are ommitted from the pages_access table, as they aren't necessary.
ProcessWire 2.x Copyright (C) 2011 by Ryan Cramer Licensed under GNU/GPL v2, see LICENSE.TXT
- Wire implements TrackChanges
-
PagesAccess
public
|
#
__construct(
Construct a PagesAccess instance, optionally specifying a Page or Template |
public
|
|
public
|
|
public
|
#
updatePage(
Save to pages_access table to indicate what template each page is getting it's access from |
public
|
|
protected
|
|
protected
|
_(),
___changed(),
__call(),
__get(),
__toString(),
_n(),
_x(),
addHook(),
addHookAfter(),
addHookBefore(),
addHookProperty(),
className(),
error(),
fuel(),
getAllFuel(),
getChanges(),
getFuel(),
getHooks(),
isChanged(),
isHooked(),
message(),
removeHook(),
resetTrackChanges(),
runHooks(),
setFuel(),
setTrackChanges(),
trackChange(),
trackChanges(),
untrackChange(),
useFuel()
|
protected
array
|
$_templates | array() |
#
Cached templates that don't define access |
protected
array
|
$_accessTemplates | array() |
#
Cached templates that DO define access |
protected
array
|
$completedParentIDs | array() |
#
Array of page parent IDs that have already been completed |
$changes,
$defaultHookOptions,
$fuel,
$hookMethodCache,
$localHooks,
$staticHooks,
$trackChanges,
$useFuel
|