rearrangement of defines to base class

This commit is contained in:
skeeter 2001-03-09 18:03:00 +00:00
parent a48625a0f6
commit a3f62fa7cf
2 changed files with 22 additions and 22 deletions

View File

@ -14,28 +14,6 @@
/* $Id$ */ /* $Id$ */
if(extension_loaded('mcal') == False)
{
define(RECUR_NONE,0);
define(RECUR_DAILY,1);
define(RECUR_WEEKLY,2);
define(RECUR_MONTHLY_MDAY,3);
define(RECUR_MONTHLY_WDAY,4);
define(RECUR_YEARLY,5);
define(M_SUNDAY,1);
define(M_MONDAY,2);
define(M_TUESDAY,4);
define(M_WEDNESDAY,8);
define(M_THURSDAY,16);
define(M_FRIDAY,32);
define(M_SATURDAY,64);
define(M_WEEKDAYS,63);
define(M_WEEKEND,65);
define(M_ALLDAYS,127);
}
CreateObject('calendar.calendar_item'); CreateObject('calendar.calendar_item');
if($phpgw_info['server']['calendar_type'] == 'mcal' && extension_loaded('mcal') == False) if($phpgw_info['server']['calendar_type'] == 'mcal' && extension_loaded('mcal') == False)
{ {

View File

@ -14,6 +14,28 @@
/* $Id$ */ /* $Id$ */
if(extension_loaded('mcal') == False)
{
define(RECUR_NONE,0);
define(RECUR_DAILY,1);
define(RECUR_WEEKLY,2);
define(RECUR_MONTHLY_MDAY,3);
define(RECUR_MONTHLY_WDAY,4);
define(RECUR_YEARLY,5);
define(M_SUNDAY,1);
define(M_MONDAY,2);
define(M_TUESDAY,4);
define(M_WEDNESDAY,8);
define(M_THURSDAY,16);
define(M_FRIDAY,32);
define(M_SATURDAY,64);
define(M_WEEKDAYS,63);
define(M_WEEKEND,65);
define(M_ALLDAYS,127);
}
define('MSG_DELETED',0); define('MSG_DELETED',0);
define('MSG_MODIFIED',1); define('MSG_MODIFIED',1);
define('MSG_ADDED',2); define('MSG_ADDED',2);