\Consultation
Synopsis
class Consultation
extends UserDefinedForm
{
- // members
- private static array $db = ;
- private static array $has_many = ;
- private static array $summary_fields = ;
- // methods
- public void getCMSFields()
- public Boolean isOpen()
- public void hasStarted()
- public void hasExpired()
- public HTMLText getStatus()
- public ConsultationCategory getCategory()
- public String getCategoryName()
- public Int getGlobalPopularity()
- public String getGlobalPopularityAsString()
- public Int getPopularityInCategory()
- public String getPopularityInCatgeoryAsString()
- public Int getParticipation()
- public static void getMostPopular()
- public static void getAllSubmissions()
- public static DataList getOrderedByPopulartity()
Hierarchy
Extends
- UserDefinedForm
Members
private
- $db
- $has_many
- $summary_fields
Methods
public
- getAllSubmissions() — Get all submission for all consultation
- getCMSFields()
- getCategory() — Return the parent category
- getCategoryName() — Return the parent category name
- getGlobalPopularity() — Return the position of this consultation based on the amount of submission
- getGlobalPopularityAsString() — Return the position of this consultation based on the amount of submission in a position / number consultation string format
- getMostPopular() — Get the consultation with the most submissions
- getOrderedByPopulartity() — Return all consultation ordered by popularity based on the number of submissions
- getParticipation() — Return the number of submission for this cosultation
- getPopularityInCategory() — Return the position of this consultation based on the amount of submission within the same category
- getPopularityInCatgeoryAsString() — Return the position of this consultation based on the amount of submission within the same category in a position / number consultation string format
- getStatus() — Return whether the participation is opened for gridfield summary
- hasExpired()
- hasStarted()
- isOpen() — Return whether this onsultation is open for participation