constants.php

Holds various constants used by back-end classes.

Summary
Holds various constants used by back-end classes.
Define types of markup available for entries.
Use auto-markup.
Use LBCode markup, a bastardized version of BBCode.
Treat the markup as raw HTML, leaving it untouched.
Update status constants for blog entry modifying.
Update succeeded.
Update failed because entry has no body data.
Generic error message.
The update failed because the user is not logged in or because he lacks sufficient permissions.
Status constants used for file uploading.
Upload succeeded without errors.
There was no file uploaded.
The uploaded file is too big for the server.
The file is too big for the suggested size in the form.
The file was not completely received.
Generic upload failure.
The file name was too long and has been truncated.
The file name is not valid for upload.
Invalid form field name.

Markup Types

Define types of markup available for entries.

Summary
Use auto-markup.
Use LBCode markup, a bastardized version of BBCode.
Treat the markup as raw HTML, leaving it untouched.

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.

BlogEntry Error Codes

Update status constants for blog entry modifying.

Summary
Update succeeded.
Update failed because entry has no body data.
Generic error message.
The 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
Upload succeeded without errors.
There was no file uploaded.
The uploaded file is too big for the server.
The file is too big for the suggested size in the form.
The file was not completely received.
Generic upload failure.
The file name was too long and has been truncated.
The file name is not valid for upload.
Invalid 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.