Settings reference

Settings are stored as class constants and therefore cannot be modified at runtime. For the most part, the only settings that you will probably need to modify are CSS_PATH, JS_PATH, and WEBMASTER_EMAIL.

Dates

Date settings are stored in Pancake/Settings/Date.php.

DATE_FORMAT

Date::DATE_FORMAT

Format to display a date.

DATETIME_FORMAT

Date::DATETIME_FORMAT

Format to display a datetime stamp.

SEMESTER_REGEX

Date::SEMESTER_REGEX

Regular expression that matches a semester and year combination.

Fields

Field settings are stored in Pancake/Settings/Fields.php.

ACCESSIBLE_TEXT_CLASS

Fields::ACCESSIBLE_TEXT_CLASS

HTML class to add to field paragraphs that contain accessible text.

ACCESSIBLE_TEXT_HTML

Fields::ACCESSIBLE_TEXT_HTML

Template for accessible text.

ERROR_CLASS

Fields::ERROR_CLASS

HTML class to add to field paragraphs that do not pass validation.

ERROR_HTML

Fields::ERROR_HTML

Template for validation error messages.

ID_PREFIX

Fields::ID_PREFIX

Prefix for field IDs, e.g. “name” -> “f_name”. This helps to avoid IDs conflicting with other HTML elements on your webpage.

HELP_TEXT_CLASS

Fields::HELP_TEXT_CLASS

HTML class to add to field paragraphs that contain help text.

HELP_TEXT_HTML

Fields::HELP_TEXT_HTML

Template for help text.

OPTIONAL_CLASS

Fields::OPTIONAL_CLASS

HTML class to add to field paragraphs if the field is optional.

OPTIONAL_HTML

Fields::OPTIONAL_HTML

Template for the optional message.

UPLOAD_MESSAGE_HTML

Fields::UPLOAD_MESSAGE_HTML

Template for the file-already-uploaded message.

Hooks

Hook settings are stored in Pancake/Settings/Hooks.php.

CONFIRMATION_SUBJECT

Fields::CONFIRMATION_SUBJECT

Default subject for the confirmation email.

CONFIRMATION_MESSAGE

Fields::CONFIRMATION_MESSAGE

Default message for the confirmation email.

Security

Security settings are stored in Pancake/Settings/Security.php.

SALT

Fields::SALT

CSRF protection salt.

SPAM_MESSAGE

Fields::SPAM_MESSAGE

Error message to display when the form has been flagged as spam.

Validation

Validation settings are stored in Pancake/Settings/Validation.php.

ERROR_HTML

Fields::ERROR_HTML

Template for the error-message list.

ERROR_ITEM_HTML

Fields::ERROR_ITEM_HTML

Template for each individual error in the error-message list.

ERROR_ITEM_FIELD_HTML

Fields::ERROR_ITEM_FIELD_HTML

Template for each individual field-specific error in the error-message list.

SUCCESS_HTML

Fields::SUCCESS_HTML

Template for the success message.

Other

Miscellaneous settings are stored in Pancake/Settings/Other.php.

CSS_PATH

Fields::CSS_PATH

File path to Pancake’s CSS files.

JS_PATH

Fields::JS_PATH

File path to Pancake’s JavaScript files.

WEBMASTER_EMAIL

Fields::WEBMASTER_EMAIL

Email address to which to send error messages (as a last resort operation).