public function AuthcacheP13nFragmentAccessInterface::check in Authenticated User Page Caching (Authcache) 7.2
Check whether the user has access to the given fragment.
Parameters
object $account: The user account to check.
string $key: The key for the fragment to be checked.
var $subject: The result of the loader function for the given key. If no AuthcacheP13nFragmentLoader is associated with this fragment, subject is equal to key.
array $context: Additional run-time per-request context (key-value pairs).
Return value
bool Return TRUE when the user has access, FALSE otherwise.
8 methods override AuthcacheP13nFragmentAccessInterface::check()
- AuthcacheFieldFragment::check in modules/
authcache_field/ includes/ AuthcacheFieldFragment.inc - Check whether the user has access to the given fragment.
- AuthcacheFlagFlagFragment::check in modules/
authcache_flag/ includes/ AuthcacheFlagFlagFragment.inc - Check whether the user has access to the given fragment.
- AuthcacheMenuItemTitleFragment::check in modules/
authcache_menu/ includes/ AuthcacheMenuItemTitleFragment.inc - Check access to menu item.
- AuthcacheP13nTestEchoFragmentAccess::check in modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc - Check whether the user has access to the given fragment.
- AuthcacheP13nTestFragmentAccessStub::check in modules/
authcache_p13n/ tests/ authcache_p13n.stub.inc - Check whether the user has access to the given fragment.
File
- modules/
authcache_p13n/ includes/ AuthcacheP13nFragmentAccessInterface.inc, line 31 - Defines authcache personalized fragment access checker.
Class
- AuthcacheP13nFragmentAccessInterface
- Interface for personalization fragment access checkers.
Code
public function check($account, $key, $subject, $context);