Constants
Applications
define('APP_WALL', 1);
define('APP_TODOS', 2);
define('APP_DISCUSSIONS', 3);
define('APP_MILESTONES', 4);
define('APP_TIME', 5);
define('APP_FILES', 6);
define('APP_INVOICES', 7);
define('APP_BUGTRACKER', 13);
define('APP_WIKI', 14);
define('APP_CRM', 16);
define('APP_PASSMAN', 17);
define('APP_TASKY', 18);
define('APP_CALENDAR', 19);
define('APP_INVOICESPLUS', 20);
define('MODULE_GDOCS', 21);
define('MODULE_PROJ_CLONING', 22);
Actions
(used in notifications)
define('ACTION_DEFAULT', 0);
define('ACTION_ADD', 1);
define('ACTION_EDIT', 2);
define('ACTION_DELETE', 3);
define('ACTION_ASSIGN', 4);
define('ACTION_FILE_UPLOAD', 5);
define('ACTION_START', 6);
define('ACTION_STOP', 7);
define('ACTION_COMPLETE', 8);
define('ACTION_COMMENT', 9);
define('ACTION_COMMENT_DELETE', 10);
define('ACTION_BILLED', 11);
define('ACTION_RESET', 12);
define('ACTION_COMMENT_EDIT', 13);
define('ACTION_UNBILLED', 14);
define('ACTION_LINK_TODO_MILE_ADD', 15);
define('ACTION_LINK_TODO_MILE_DELETE', 16);
define('ACTION_ADD_INVITE', 50); // someone invited someone to a project
define('EVENT_DUE_REMINDER', 100); // reminder about due/overdue triggered
Assignments
define('ASSIGNED_EVERYONE', -1);
define('ASSIGNED_NOONE', 0);
Statuses
define('STATUS_NOT_STARTED', 0);
define('STATUS_COMPLETED', 1);
define('STATUS_IN_PROGRESS', 2);
define('STATUS_INVALID', 3);
define('STATUS_REVIEW', 4);
Priorities
$_priorities = array (
0 => 'none',
1 => 'low',
2 => 'medium',
3 => 'high'
);