Stud.IP  5.4
ConsultationHelper.php File Reference

Functions

 _before ()
 
static static static getUserForCredentials (array $credentials)
 
 createBlockWithSlotsForRange (Range $range, bool $lock_blocks=false)
 
 getSlotFromBlock (ConsultationBlock $block)
 
 withStudipEnv (array $credentials, callable $fn)
 
 createBookingForSlot (array $credentials, ConsultationSlot $slot, User $user)
 
 getSingleResourceDocument (JsonApiResponse $response)
 
 getResourceCollectionDocument (JsonApiResponse $response)
 
 assertHasRelations (ResourceObject $resource,... $relations)
 

Variables

trait ConsultationHelper
 

Function Documentation

◆ _before()

_before ( )
protected

◆ assertHasRelations()

assertHasRelations ( ResourceObject  $resource,
  $relations 
)
protected

◆ createBlockWithSlotsForRange()

createBlockWithSlotsForRange ( Range  $range,
bool  $lock_blocks = false 
)
protected

◆ createBookingForSlot()

createBookingForSlot ( array  $credentials,
ConsultationSlot  $slot,
User  $user 
)
protected

◆ getResourceCollectionDocument()

getResourceCollectionDocument ( JsonApiResponse  $response)
protected

◆ getSingleResourceDocument()

getSingleResourceDocument ( JsonApiResponse  $response)
protected

◆ getSlotFromBlock()

getSlotFromBlock ( ConsultationBlock  $block)
protected

◆ getUserForCredentials()

static static static getUserForCredentials ( array  $credentials)
protected

◆ withStudipEnv()

withStudipEnv ( array  $credentials,
callable  $fn 
)
protected

Variable Documentation

◆ ConsultationHelper

trait ConsultationHelper
Initial value:
{
protected $tester