Sweden Democrats' Meeting Tool
 All Classes Files Functions Variables Pages
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SD_Meeting_Tool_Participant_Field Class Reference

The field of a participant. More...

Public Member Functions

 get_slug ()

Static Public Member Functions

static slug ($field_name)

Public Attributes

 $name
 $description
 $type = 'text'
 $value
 $is_native = true

Detailed Description

The field of a participant.

Will mostly be the column namn, using the column's computer name as the name and the human-readable name as a description.

See Also
SD_Meeting_Tool_Participants
Author
Edward Plainview edwar.nosp@m.d.pl.nosp@m.ainvi.nosp@m.ew@s.nosp@m.verig.nosp@m.edem.nosp@m.okrat.nosp@m.erna.nosp@m..se

Member Function Documentation

SD_Meeting_Tool_Participant_Field::get_slug ( )

Returns this field's slug.

return The sanitized slug of this field.

static SD_Meeting_Tool_Participant_Field::slug (   $field_name)
static

Returns the sanitized slug of the name.

Returns
The slug of the field's name.

Member Data Documentation

SD_Meeting_Tool_Participant_Field::$description

Description of field.

Human-reable string.

example: "First name", "Last two names"

SD_Meeting_Tool_Participant_Field::$is_native = true

Whether this field comes from the participant database or is tacked on by an extra plugin.

SD_Meeting_Tool_Participant_Field::$name

Name of the field.

Will most probably be a single word or two lowercase words with an underscore.

No umlauts or special chars, just a-z, 0-9 and an underscore or two.

example: first_name, last2names

SD_Meeting_Tool_Participant_Field::$type = 'text'

Type of field.

Can be anything the modules want: text, textfield, integer, datettime, barcode, etc.

Default is "text". $var $type

SD_Meeting_Tool_Participant_Field::$value

Value.

Used when just about to display a participant field value, using the sd_mt_display_participant_field filter. Otherwise unused.


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