Class Participants
License: GNU General Public License v2.0 only **********************************************************************************************
Brief:
This class gets information about participants and leaders of dates.
This function is developed, to read the participants and leaders of dates from database. Participants and leaders can be counted or be written in an array with surname, firstname and leader-status. Also the limit of participation can to be calculated. This class is flexible in usage. It is possible to pass the paramter of the rolId when creating an instance of this object. The Id will be checked and stored in the object. So no parameters are required when calling a function. Second possibility is to pass the Id to a function of this object. The stored value in current object will be overwritten. This is recommended looping an array, for example, with various Id´s.
Class: Participants
Located at participants.php
Methods summary
public
|
#
__construct(
Constructor that will initialize variables and check if $rolId is numeric |
public
|
|
private
boolean
|
|
public
|
|
public
integer
|
|
public
integer
|
|
public
integer
|
|
public
array|false
|
#
getParticipantsArray( integer $roleId = 0, string $order = 'ASC' )
Return all participants with surname,firstname and leader status as array |