constants.php

Holds various constants used by back-end classes.

Summary
constants.phpHolds various constants used by back-end classes.
Markup TypesDefine types of markup available for entries.
Constants
MARKUP_NONEUse auto-markup.
MARKUP_BBCODEUse LBCode markup, a bastardized version of BBCode.
MARKUP_HTMLTreat the markup as raw HTML, leaving it untouched.
MARKUP_MARKDOWNTreat the markup as Markdown markup.
BlogEntry Error CodesUpdate status constants for blog entry modifying.
Constants
UPDATE_SUCCESSUpdate succeeded.
UPDATE_NO_DATA_ERRORUpdate failed because entry has no body data.
UPDATE_ENTRY_ERRORGeneric error message.
UPDATE_AUTH_ERRORThe update failed because the user is not logged in or because he lacks sufficient permissions.
FileUpload Error CodesStatus constants used for file uploading.
Constants
FILEUPLOAD_NO_ERRORUpload succeeded without errors.
FILEUPLOAD_NO_FILEThere was no file uploaded.
FILEUPLOAD_SERVER_TOO_BIGThe uploaded file is too big for the server.
FILEUPLOAD_FORM_TOO_BIGThe file is too big for the suggested size in the form.
FILEUPLOAD_PARTIAL_FILEThe file was not completely received.
FILEUPLOAD_NOT_UPLOADEDGeneric upload failure.
FILEUPLOAD_NAME_TRUNCATEDThe file name was too long and has been truncated.
FILEUPLOAD_BAD_NAMEThe file name is not valid for upload.
FILEUPLOAD_NOT_INITIALIZEDInvalid form field name.

Markup Types

Define types of markup available for entries.

Summary
Constants
MARKUP_NONEUse auto-markup.
MARKUP_BBCODEUse LBCode markup, a bastardized version of BBCode.
MARKUP_HTMLTreat the markup as raw HTML, leaving it untouched.
MARKUP_MARKDOWNTreat the markup as Markdown markup.

Constants

MARKUP_NONE

Use auto-markup.  All HTML tags are stripped, line and paragraph breaks are auto-inserted, and URLs are auto-converted into links.

MARKUP_BBCODE

Use LBCode markup, a bastardized version of BBCode.

MARKUP_HTML

Treat the markup as raw HTML, leaving it untouched.

MARKUP_MARKDOWN

Treat the markup as Markdown markup.

BlogEntry Error Codes

Update status constants for blog entry modifying.

Summary
Constants
UPDATE_SUCCESSUpdate succeeded.
UPDATE_NO_DATA_ERRORUpdate failed because entry has no body data.
UPDATE_ENTRY_ERRORGeneric error message.
UPDATE_AUTH_ERRORThe update failed because the user is not logged in or because he lacks sufficient permissions.

Constants

UPDATE_SUCCESS

Update succeeded.

UPDATE_NO_DATA_ERROR

Update failed because entry has no body data.

UPDATE_ENTRY_ERROR

Generic error message.

UPDATE_AUTH_ERROR

The update failed because the user is not logged in or because he lacks sufficient permissions.

FileUpload Error Codes

Status constants used for file uploading.

Summary
Constants
FILEUPLOAD_NO_ERRORUpload succeeded without errors.
FILEUPLOAD_NO_FILEThere was no file uploaded.
FILEUPLOAD_SERVER_TOO_BIGThe uploaded file is too big for the server.
FILEUPLOAD_FORM_TOO_BIGThe file is too big for the suggested size in the form.
FILEUPLOAD_PARTIAL_FILEThe file was not completely received.
FILEUPLOAD_NOT_UPLOADEDGeneric upload failure.
FILEUPLOAD_NAME_TRUNCATEDThe file name was too long and has been truncated.
FILEUPLOAD_BAD_NAMEThe file name is not valid for upload.
FILEUPLOAD_NOT_INITIALIZEDInvalid form field name.

Constants

FILEUPLOAD_NO_ERROR

Upload succeeded without errors.

FILEUPLOAD_NO_FILE

There was no file uploaded.

FILEUPLOAD_SERVER_TOO_BIG

The uploaded file is too big for the server.

FILEUPLOAD_FORM_TOO_BIG

The file is too big for the suggested size in the form.

FILEUPLOAD_PARTIAL_FILE

The file was not completely received.

FILEUPLOAD_NOT_UPLOADED

Generic upload failure.

FILEUPLOAD_NAME_TRUNCATED

The file name was too long and has been truncated.

FILEUPLOAD_BAD_NAME

The file name is not valid for upload.

FILEUPLOAD_NOT_INITIALIZED

Invalid form field name.

Close