Bristol SU Support Package
Public Member Functions | List of all members
BristolSU\Support\Logic\LogicTester Class Reference
Inheritance diagram for BristolSU\Support\Logic\LogicTester:
Inheritance graph
[legend]
Collaboration diagram for BristolSU\Support\Logic\LogicTester:
Collaboration graph
[legend]

Public Member Functions

 evaluate (Logic $logic, $userModel=null, $groupModel=null, $roleModel=null)
 

Detailed Description

Test if the given resources are in a logic group

Definition at line 17 of file LogicTester.php.

Member Function Documentation

◆ evaluate()

BristolSU\Support\Logic\LogicTester::evaluate ( Logic  $logic,
  $userModel = null,
  $groupModel = null,
  $roleModel = null 
)

Test if the given resources are in a logic group

Parameters
Logic$logicLogic group to test
null | User$userModelThe user model to test the logic group with
null | Group$groupModelThe group model to test the logic group with
null | Role$roleModelThe role model to test the logic group with
Returns
bool If the user, group and/or role are in the logic group

Implements BristolSU\Support\Logic\Contracts\LogicTester.

Definition at line 30 of file LogicTester.php.

References BristolSU\Support\Logic\Logic\allFalseFilters(), BristolSU\Support\Logic\Logic\allTrueFilters(), BristolSU\Support\Logic\Logic\anyFalseFilters(), and BristolSU\Support\Logic\Logic\anyTrueFilters().

Referenced by BristolSU\Support\Logic\Audience\AudienceMember\filterForLogic().


The documentation for this class was generated from the following file: