summaryrefslogtreecommitdiff
path: root/app/Model/Task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-05-10 15:55:57 -0400
committerFrederic Guillot <fred@kanboard.net>2015-05-10 15:55:57 -0400
commita7b77623ce602a44a341f747fdfe43dbdc268304 (patch)
tree28040eb9633cba305962aaf56df81cce55113eff /app/Model/Task.php
parentbd3c44c3d337d49b02e19da0c6baed1a4abec37b (diff)
Recurring tasks (#847): rename class constants
Diffstat (limited to 'app/Model/Task.php')
-rw-r--r--app/Model/Task.php42
1 files changed, 21 insertions, 21 deletions
diff --git a/app/Model/Task.php b/app/Model/Task.php
index 02469047..abd787ad 100644
--- a/app/Model/Task.php
+++ b/app/Model/Task.php
@@ -46,35 +46,35 @@ class Task extends Base
*
* @var integer
*/
- const RECURE_STATUS_NONE = 0;
- const RECURE_STATUS_PENDING = 1;
- const RECURE_STATUS_PROCESSED = 2;
+ const RECURRING_STATUS_NONE = 0;
+ const RECURRING_STATUS_PENDING = 1;
+ const RECURRING_STATUS_PROCESSED = 2;
/**
* Recurrence: trigger
*
* @var integer
*/
- const RECURE_TRIGGER_FIRST = 0;
- const RECURE_TRIGGER_LAST = 1;
- const RECURE_TRIGGER_CLOSE = 2;
+ const RECURRING_TRIGGER_FIRST_COLUMN = 0;
+ const RECURRING_TRIGGER_LAST_COLUMN = 1;
+ const RECURRING_TRIGGER_CLOSE = 2;
/**
* Recurrence: timeframe
*
* @var integer
*/
- const RECURE_DAYS = 0;
- const RECURE_MONTHS = 1;
- const RECURE_YEARS = 2;
+ const RECURRING_TIMEFRAME_DAYS = 0;
+ const RECURRING_TIMEFRAME_MONTHS = 1;
+ const RECURRING_TIMEFRAME_YEARS = 2;
/**
* Recurrence: base date used to calculate new due date
*
* @var integer
*/
- const RECURE_BASEDATE_DUEDATE = 0;
- const RECURE_BASEDATE_TRIGGERDATE = 1;
+ const RECURRING_BASEDATE_DUEDATE = 0;
+ const RECURRING_BASEDATE_TRIGGERDATE = 1;
/**
* Remove a task
@@ -121,8 +121,8 @@ class Task extends Base
public function getRecurrenceStatusList()
{
return array (
- Task::RECURE_STATUS_NONE => t('No'),
- Task::RECURE_STATUS_PENDING => t('Yes'),
+ Task::RECURRING_STATUS_NONE => t('No'),
+ Task::RECURRING_STATUS_PENDING => t('Yes'),
);
}
@@ -135,9 +135,9 @@ class Task extends Base
public function getRecurrenceTriggerList()
{
return array (
- Task::RECURE_TRIGGER_FIRST => t('When task is moved from first column'),
- Task::RECURE_TRIGGER_LAST => t('When task is moved to last column'),
- Task::RECURE_TRIGGER_CLOSE => t('When task is closed'),
+ Task::RECURRING_TRIGGER_FIRST_COLUMN => t('When task is moved from first column'),
+ Task::RECURRING_TRIGGER_LAST_COLUMN => t('When task is moved to last column'),
+ Task::RECURRING_TRIGGER_CLOSE => t('When task is closed'),
);
}
@@ -150,8 +150,8 @@ class Task extends Base
public function getRecurrenceBasedateList()
{
return array (
- Task::RECURE_BASEDATE_DUEDATE => t('Existing due date'),
- Task::RECURE_BASEDATE_TRIGGERDATE => t('Action date'),
+ Task::RECURRING_BASEDATE_DUEDATE => t('Existing due date'),
+ Task::RECURRING_BASEDATE_TRIGGERDATE => t('Action date'),
);
}
@@ -164,9 +164,9 @@ class Task extends Base
public function getRecurrenceTimeframeList()
{
return array (
- Task::RECURE_DAYS => t('Day(s)'),
- Task::RECURE_MONTHS => t('Month(s)'),
- Task::RECURE_YEARS => t('Year(s)'),
+ Task::RECURRING_TIMEFRAME_DAYS => t('Day(s)'),
+ Task::RECURRING_TIMEFRAME_MONTHS => t('Month(s)'),
+ Task::RECURRING_TIMEFRAME_YEARS => t('Year(s)'),
);
}
}