\org_openpsa_calendar_conflictmanager

Eventmember conflict manager

Summary

Methods
Properties
Constants
__construct()
validate_form()
get_message()
run()
$busy_members
$busy_resources
No constants found
No protected methods found
No protected properties found
N/A
_add_event_constraints()
_load_participants()
_load_resources()
_process_resource()
_process_participant()
flag_busy()
is_processed()
$_event
$l10n
N/A

Properties

$busy_members

$busy_members : mixed

busy eventmembers

Type

mixed

$busy_resources

$busy_resources : mixed

busy event resources

Type

mixed

Methods

validate_form()

validate_form(array  $input) : mixed

Validate create/edit forms

Parameters

array $input

Form submit values

Returns

mixed —

Array with error message or true on success

run()

run(  $rob_tentative = false) 

Check for potential busy conflicts to allow more graceful handling of those conditions

Also allows normal events to "rob" resources from tentative ones. NOTE: return false for no (or resolved automatically) conflicts and true for unresolvable conflicts

Parameters

$rob_tentative

_add_event_constraints()

_add_event_constraints(  $qb,   $fieldname = 'eid') 

Parameters

$qb
$fieldname

_load_participants()

_load_participants() 

_load_resources()

_load_resources() 

_process_resource()

_process_resource(  $member, array  $modified_events,   $rob_tentative) 

Parameters

$member
array $modified_events
$rob_tentative

_process_participant()

_process_participant(  $member, array  $modified_events,   $rob_tentative) 

Parameters

$member
array $modified_events
$rob_tentative

flag_busy()

flag_busy(  $type,   $id,   $event) 

Parameters

$type
$id
$event

is_processed()

is_processed(  $type,   $eid,   $id) 

Parameters

$type
$eid
$id