package Gems
subpackage Agenda
copyright Copyright (c) 2014 Erasmus MC
license New BSD License
since Class available since version 1.6.5 16-okt-2014 16:56:07
inherited_from \Gems\Agenda\AppointmentSubFilterAbstract

 Methods

Called after the check that all required registry values have been set correctly has run.

afterRegistry() : void
Inherited

Load the object from a data array

exchangeArray(array $data) 
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::exchangeArray()

Parameters

$data

array

The appointment field id from gtap_id_app_field

getAppointmentFieldId() : integer
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getAppointmentFieldId()

Returns

integer

The field id as it is recognized be the track engine

getFieldId() : string
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getFieldId()

Returns

string

The filter id

getFilterId() : integer
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getFilterId()

Returns

integer

The name of the filter

getName() : string
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getName()

Returns

string

Generate a where statement to filter the appointment model

getSqlWhere() : string

Returns

string

The track field id for the filter

getTrackAppointmentFieldId() : integer
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getTrackAppointmentFieldId()

Returns

integer

The track id for the filter

getTrackId() : integer
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getTrackId()

Returns

integer

The number of days to wait between track creation

getWaitDays() : integer
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::getWaitDays()

Returns

integeror null when no track creation or no wait days

Should this track be created when it does not exist?

isCreator() : boolean
Inherited
inherited_from \Gems\Agenda\AppointmentFilterInterface::isCreator()

Returns

boolean

Check a filter for a match

matchAppointment(\Gems\Agenda\Gems_Agenda_Appointment $appointment) : boolean

Parameters

$appointment

\Gems\Agenda\Gems_Agenda_Appointment

Returns

boolean

By default only object variables starting with '_' are serialized in order to avoid serializing any resource types loaded by \MUtil_Translate_TranslateableAbstract

serialize() : string
Inherited

Returns

string

Restore parameter values

unserialize(string $data) 
Inherited

Parameters

$data

string

Override this function when you need to perform any actions when the data is loaded.

afterLoad() 
Inherited

Test for the availability of variables as these objects can be loaded data first after deserialization or registry variables first after normal instantiation.

That is why this function called both at the end of afterRegistry() and after exchangeArray(), but NOT after unserialize().

After this the object should be ready for serialization

 Properties

 

Initial data settings

$_data : array

Default

 

of AppointmentFilterInterface instances

$_subFilters : array

Default

array()
 

$agenda

$agenda : \Gems_Agenda

Default

 Constants

 

Constant for filters that should never trigger

NO_MATCH_SQL = '1=0'