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

Public Member Functions

 __construct (array $attributes=[])
 
 filters ()
 
 allTrueFilters ()
 
 allFalseFilters ()
 
 anyTrueFilters ()
 
 anyFalseFilters ()
 
 user ()
 
- Public Member Functions inherited from BristolSU\Support\Revision\HasRevisions
 initializeHasRevisions ()
 
 getSystemUserId ()
 

Protected Attributes

 $fillable
 
 $appends
 
- Protected Attributes inherited from BristolSU\Support\Revision\HasRevisions
 $historyLimit
 
 $revisionCleanup
 

Detailed Description

Represents a logic group in the database

Definition at line 16 of file Logic.php.

Constructor & Destructor Documentation

◆ __construct()

BristolSU\Support\Logic\Logic::__construct ( array  $attributes = [])

Initialise a Logic model.

Save the ID of the current user on creation

Parameters
array$attributes

Definition at line 52 of file Logic.php.

Member Function Documentation

◆ allFalseFilters()

BristolSU\Support\Logic\Logic::allFalseFilters ( )

Filter relationship for filters that must all be false

Returns

Definition at line 90 of file Logic.php.

Referenced by BristolSU\Support\Logic\LogicTester\evaluate().

◆ allTrueFilters()

BristolSU\Support\Logic\Logic::allTrueFilters ( )

Filter relationship for filters that must all be true

Returns

Definition at line 80 of file Logic.php.

Referenced by BristolSU\Support\Logic\LogicTester\evaluate().

◆ anyFalseFilters()

BristolSU\Support\Logic\Logic::anyFalseFilters ( )

Filter relationship for filters of which any must be false

Returns

Definition at line 110 of file Logic.php.

Referenced by BristolSU\Support\Logic\LogicTester\evaluate().

◆ anyTrueFilters()

BristolSU\Support\Logic\Logic::anyTrueFilters ( )

Filter relationship for filters of which any must be true

Returns

Definition at line 100 of file Logic.php.

Referenced by BristolSU\Support\Logic\LogicTester\evaluate().

◆ filters()

BristolSU\Support\Logic\Logic::filters ( )

Filter relationship

Returns all filters constituting the logic group

Returns

Definition at line 69 of file Logic.php.

◆ user()

BristolSU\Support\Logic\Logic::user ( )

Get the user who created the logic

Returns
Exceptions

Definition at line 147 of file Logic.php.

Member Data Documentation

◆ $appends

BristolSU\Support\Logic\Logic::$appends
protected
Initial value:
= [
'lowest_resource'
]

Definition at line 40 of file Logic.php.

◆ $fillable

BristolSU\Support\Logic\Logic::$fillable
protected
Initial value:
= [
'name',
'description',
'user_id'
]

Definition at line 24 of file Logic.php.


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