Class Conference
In: app/models/conference.rb
Parent: ActiveRecord::Base

Methods

Public Class methods

Produce a list of conferences which are in their Call For Papers period (this means, for which a person can currently submit a proposal)

It can take whatever parameters you would send to a Conference#find call.

Produce a list of conferences which are in their registration period (this means, for which a person can currently register as an attendee)

It can take whatever parameters you would send to a Conference#find call.

Produce a list of conferences which already begun (and might have finished), inversely ordered by their beginning date (i.e. most recent first)

It can take whatever parameters you would send to a Person#find call.

Produce a list of conferences which have already begun (and might have finished) for which the person specified as the first parameter is registered, inversely ordered by their beginning date (i.e. most recent first)

All of the conferences which have registered timeslots (this means, those conferences for which we might generate attendance lists)

Produce a list of conferences which have not yet finished, ordered by their beginning date (i.e. the closest first)

It can take whatever parameters you would send to a Conference#find call.

Produce a list of conferences which have not yet begun, for which the person specified as the first parameter is registered, ordered by their beginning date (i.e. the closest first)

Public Instance methods

Does this conference accept registering new proposals? This means, does it have a Call For Papers (CFP)? Are we in that period?

If it has a cfp_open_date but not a cfp_close_date, take conference beginning date as a deadline (i.e. no proposals might be submitted once the conference has started)

Can people sign up for this conference? This means, are we in the registration period (or is it blank), and the conference has not yet finished?

Is this conference taking place now?

How many days is this conference‘s beginning date from today? The returned value is an integer - positive for upcoming conferences, negative for past conferences.

How many days are we from this conference‘s beginning date? Returns a positive integer number (or zero, if the conference starts today), representing the absolute distance.

Does this conference have a Call For Papers period? (even if it is not current)

What is the last valid date for the Call For Papers period? This will return cfp_close_date if defined, or the conference beginning date otherwise

What is the last valid date for registration? This will return reg_close_date if defined, or the conference finish date otherwise

Returns whether this conference‘s beginning time is in the past (and might have finished)

List of people who are registered for this conference and who have accepted the "ok_conf_mails" boolean

Do we have propsals submitted by a given user? Give back the list

Returns whether this conference‘s beginning time is still in the future

[Validate]