[Trellis-developers] constants prefix
Shaddy Zeineddine
shaddy at learning.net
Tue Oct 23 02:35:32 PDT 2007
Similar to global and session variables, constants will be prefixed with
"TRELLIS_". This will allow us to freely use any name we wish without
the risk of duplication. It will also allow us to quickly
spot/differentiate Trellis constants in the code.
The following is a list of constants we have used:
core constants:
BASE_DIRECTORY
FRIENDLY_URIS
ERROR_LEVEL
SMTP_SERVER
TIMEZONE
PORTAL_URI
BASE_URI
DATABASE_PREFIX
COMMON_BASE_DIRECTORY
CLIENT_DIRECTORY
CORE_DIRECTORY
CLASS_DIRECTORY
DATA_DIRECTORY
TEMP_DIRECTORY
MD5_PASSWORDS
UNIQUE_EMAIL_ADDRESSES
SINGLE_COURSE_REGISTRATION
AD_ROWS_PER_PAGE
EXPORT_ROWS_PER_QUERY
client constants:
CLIENT_ID
CLIENT_NAME
CLIENT_FULL_NAME
package constants:
AUTHORING_PACKAGE
ECOMMERCE_PACKAGE
CLASSROOM_PACKAGE
DOCMANAGE_PACKAGE
email addresses:
CLIENT_EMAIL_TO
CLIENT_EMAIL_FROM
templates:
TMPL_DEFAULT
TMPL_COURSE
TMPL_LOGIN
TMPL_AD_DEFAULT
TMPL_AD_LOGIN
TMPL_ERROR
email templates:
EMAIL_LOGIN_INFO
EMAIL_WELCOME
EMAIL_EVENT_WELCOME
I'm not sure if we should treat the templates the same as the rest...
they might be better located inside of a global variable.
$TRELLIS_templates['template_name'] and maybe $TRELLIS_templates_email
or email_templates.
More information about the Trellis-developers
mailing list