2012-01-24 16:11:37 +01:00
|
|
|
<?php
|
|
|
|
|
2013-10-22 22:49:28 +02:00
|
|
|
final class PhabricatorProjectTransaction
|
|
|
|
extends PhabricatorApplicationTransaction {
|
2012-01-24 16:11:37 +01:00
|
|
|
|
2013-10-22 22:49:28 +02:00
|
|
|
const TYPE_NAME = 'project:name';
|
2014-05-22 20:19:03 +02:00
|
|
|
const TYPE_SLUGS = 'project:slugs';
|
2013-10-22 22:49:28 +02:00
|
|
|
const TYPE_STATUS = 'project:status';
|
2014-02-10 23:32:30 +01:00
|
|
|
const TYPE_IMAGE = 'project:image';
|
2014-05-23 19:41:24 +02:00
|
|
|
const TYPE_ICON = 'project:icon';
|
2014-06-26 07:01:58 +02:00
|
|
|
const TYPE_COLOR = 'project:color';
|
2014-09-18 20:00:50 +02:00
|
|
|
const TYPE_LOCKED = 'project:locked';
|
2015-12-23 12:42:51 +01:00
|
|
|
const TYPE_PARENT = 'project:parent';
|
2015-12-23 12:12:20 +01:00
|
|
|
const TYPE_MILESTONE = 'project:milestone';
|
2016-02-08 20:24:32 +01:00
|
|
|
const TYPE_HASWORKBOARD = 'project:hasworkboard';
|
2016-02-12 15:19:26 +01:00
|
|
|
const TYPE_DEFAULT_SORT = 'project:sort';
|
|
|
|
const TYPE_DEFAULT_FILTER = 'project:filter';
|
2016-02-16 15:52:32 +01:00
|
|
|
const TYPE_BACKGROUND = 'project:background';
|
2014-02-10 23:32:30 +01:00
|
|
|
|
|
|
|
// NOTE: This is deprecated, members are just a normal edge now.
|
|
|
|
const TYPE_MEMBERS = 'project:members';
|
2012-01-24 16:11:37 +01:00
|
|
|
|
2015-06-16 23:25:13 +02:00
|
|
|
const MAILTAG_METADATA = 'project-metadata';
|
|
|
|
const MAILTAG_MEMBERS = 'project-members';
|
|
|
|
const MAILTAG_WATCHERS = 'project-watchers';
|
|
|
|
const MAILTAG_OTHER = 'project-other';
|
2015-05-16 01:33:31 +02:00
|
|
|
|
2013-10-22 22:49:28 +02:00
|
|
|
public function getApplicationName() {
|
|
|
|
return 'project';
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getApplicationTransactionType() {
|
2014-07-24 00:05:46 +02:00
|
|
|
return PhabricatorProjectProjectPHIDType::TYPECONST;
|
2012-01-24 16:11:37 +01:00
|
|
|
}
|
|
|
|
|
2013-10-22 22:49:37 +02:00
|
|
|
public function getRequiredHandlePHIDs() {
|
|
|
|
$old = $this->getOldValue();
|
|
|
|
$new = $this->getNewValue();
|
|
|
|
|
|
|
|
$req_phids = array();
|
|
|
|
switch ($this->getTransactionType()) {
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_MEMBERS:
|
2013-10-22 22:49:37 +02:00
|
|
|
$add = array_diff($new, $old);
|
|
|
|
$rem = array_diff($old, $new);
|
|
|
|
$req_phids = array_merge($add, $rem);
|
|
|
|
break;
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_IMAGE:
|
2014-02-10 23:32:30 +01:00
|
|
|
$req_phids[] = $old;
|
|
|
|
$req_phids[] = $new;
|
|
|
|
break;
|
2013-10-22 22:49:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return array_merge($req_phids, parent::getRequiredHandlePHIDs());
|
|
|
|
}
|
|
|
|
|
2015-01-19 19:14:27 +01:00
|
|
|
public function getColor() {
|
|
|
|
|
|
|
|
$old = $this->getOldValue();
|
|
|
|
$new = $this->getNewValue();
|
|
|
|
|
|
|
|
switch ($this->getTransactionType()) {
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_STATUS:
|
2015-01-19 19:14:27 +01:00
|
|
|
if ($old == 0) {
|
|
|
|
return 'red';
|
|
|
|
} else {
|
|
|
|
return 'green';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return parent::getColor();
|
|
|
|
}
|
|
|
|
|
2016-02-12 15:19:26 +01:00
|
|
|
public function shouldHideForFeed() {
|
|
|
|
switch ($this->getTransactionType()) {
|
|
|
|
case self::TYPE_HASWORKBOARD:
|
|
|
|
case self::TYPE_DEFAULT_SORT:
|
|
|
|
case self::TYPE_DEFAULT_FILTER:
|
2016-02-16 15:52:32 +01:00
|
|
|
case self::TYPE_BACKGROUND:
|
2016-02-12 15:19:26 +01:00
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
return parent::shouldHideForFeed();
|
|
|
|
}
|
|
|
|
|
|
|
|
public function shouldHideForMail(array $xactions) {
|
|
|
|
switch ($this->getTransactionType()) {
|
|
|
|
case self::TYPE_HASWORKBOARD:
|
|
|
|
case self::TYPE_DEFAULT_SORT:
|
|
|
|
case self::TYPE_DEFAULT_FILTER:
|
2016-02-16 15:52:32 +01:00
|
|
|
case self::TYPE_BACKGROUND:
|
2016-02-12 15:19:26 +01:00
|
|
|
return true;
|
|
|
|
}
|
2015-01-19 19:14:27 +01:00
|
|
|
|
2016-02-12 15:19:26 +01:00
|
|
|
return parent::shouldHideForMail($xactions);
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getIcon() {
|
2015-01-19 19:14:27 +01:00
|
|
|
$old = $this->getOldValue();
|
|
|
|
$new = $this->getNewValue();
|
|
|
|
|
|
|
|
switch ($this->getTransactionType()) {
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_STATUS:
|
2015-01-19 19:14:27 +01:00
|
|
|
if ($old == 0) {
|
|
|
|
return 'fa-ban';
|
|
|
|
} else {
|
|
|
|
return 'fa-check';
|
|
|
|
}
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_LOCKED:
|
2015-01-19 19:14:27 +01:00
|
|
|
if ($new) {
|
|
|
|
return 'fa-lock';
|
|
|
|
} else {
|
|
|
|
return 'fa-unlock';
|
|
|
|
}
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_ICON:
|
2015-01-19 19:14:27 +01:00
|
|
|
return $new;
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_IMAGE:
|
2015-01-19 19:14:27 +01:00
|
|
|
return 'fa-photo';
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_MEMBERS:
|
2015-01-19 19:14:27 +01:00
|
|
|
return 'fa-user';
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_SLUGS:
|
2015-01-19 19:14:27 +01:00
|
|
|
return 'fa-tag';
|
|
|
|
}
|
|
|
|
return parent::getIcon();
|
|
|
|
}
|
|
|
|
|
2013-10-22 22:49:37 +02:00
|
|
|
public function getTitle() {
|
|
|
|
$old = $this->getOldValue();
|
|
|
|
$new = $this->getNewValue();
|
2015-12-27 15:45:53 +01:00
|
|
|
$author_phid = $this->getAuthorPHID();
|
|
|
|
$author_handle = $this->renderHandleLink($author_phid);
|
2013-10-22 22:49:37 +02:00
|
|
|
|
|
|
|
switch ($this->getTransactionType()) {
|
2015-12-27 15:45:53 +01:00
|
|
|
case PhabricatorTransactions::TYPE_CREATE:
|
|
|
|
return pht(
|
|
|
|
'%s created this project.',
|
|
|
|
$this->renderHandleLink($author_phid));
|
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_NAME:
|
2013-10-22 22:49:37 +02:00
|
|
|
if ($old === null) {
|
|
|
|
return pht(
|
|
|
|
'%s created this project.',
|
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s renamed this project from "%s" to "%s".',
|
|
|
|
$author_handle,
|
|
|
|
$old,
|
|
|
|
$new);
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_STATUS:
|
2013-10-22 22:49:37 +02:00
|
|
|
if ($old == 0) {
|
|
|
|
return pht(
|
2015-01-19 19:14:27 +01:00
|
|
|
'%s archived this project.',
|
2013-10-22 22:49:37 +02:00
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
2015-01-19 19:14:27 +01:00
|
|
|
'%s activated this project.',
|
2013-10-22 22:49:37 +02:00
|
|
|
$author_handle);
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_IMAGE:
|
2014-02-10 23:32:30 +01:00
|
|
|
// TODO: Some day, it would be nice to show the images.
|
|
|
|
if (!$old) {
|
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s set this project's image to %s.",
|
2014-02-10 23:32:30 +01:00
|
|
|
$author_handle,
|
|
|
|
$this->renderHandleLink($new));
|
|
|
|
} else if (!$new) {
|
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s removed this project's image.",
|
2014-02-10 23:32:30 +01:00
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s updated this project's image from %s to %s.",
|
2014-02-10 23:32:30 +01:00
|
|
|
$author_handle,
|
|
|
|
$this->renderHandleLink($old),
|
|
|
|
$this->renderHandleLink($new));
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2014-05-22 20:19:03 +02:00
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_ICON:
|
2015-12-16 16:53:13 +01:00
|
|
|
$set = new PhabricatorProjectIconSet();
|
|
|
|
|
2014-05-23 19:41:24 +02:00
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s set this project's icon to %s.",
|
2014-05-23 19:41:24 +02:00
|
|
|
$author_handle,
|
2015-12-16 16:53:13 +01:00
|
|
|
$set->getIconLabel($new));
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2014-05-23 19:41:24 +02:00
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_COLOR:
|
2014-06-26 07:01:58 +02:00
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s set this project's color to %s.",
|
2014-06-26 07:01:58 +02:00
|
|
|
$author_handle,
|
|
|
|
PHUITagView::getShadeName($new));
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2014-06-26 07:01:58 +02:00
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_LOCKED:
|
2014-09-18 20:00:50 +02:00
|
|
|
if ($new) {
|
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s locked this project's membership.",
|
2014-09-18 20:00:50 +02:00
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
2015-05-22 09:27:56 +02:00
|
|
|
"%s unlocked this project's membership.",
|
2014-09-18 20:00:50 +02:00
|
|
|
$author_handle);
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2014-09-18 20:00:50 +02:00
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_SLUGS:
|
2014-05-22 20:19:03 +02:00
|
|
|
$add = array_diff($new, $old);
|
|
|
|
$rem = array_diff($old, $new);
|
|
|
|
|
|
|
|
if ($add && $rem) {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s changed project hashtag(s), added %d: %s; removed %d: %s.',
|
2014-05-22 20:19:03 +02:00
|
|
|
$author_handle,
|
|
|
|
count($add),
|
|
|
|
$this->renderSlugList($add),
|
|
|
|
count($rem),
|
|
|
|
$this->renderSlugList($rem));
|
|
|
|
} else if ($add) {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s added %d project hashtag(s): %s.',
|
2014-05-22 20:19:03 +02:00
|
|
|
$author_handle,
|
|
|
|
count($add),
|
|
|
|
$this->renderSlugList($add));
|
|
|
|
} else if ($rem) {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s removed %d project hashtag(s): %s.',
|
2014-05-22 20:19:03 +02:00
|
|
|
$author_handle,
|
|
|
|
count($rem),
|
|
|
|
$this->renderSlugList($rem));
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2014-05-22 20:19:03 +02:00
|
|
|
|
2015-05-13 22:50:28 +02:00
|
|
|
case self::TYPE_MEMBERS:
|
2013-10-22 22:49:37 +02:00
|
|
|
$add = array_diff($new, $old);
|
|
|
|
$rem = array_diff($old, $new);
|
|
|
|
|
|
|
|
if ($add && $rem) {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s changed project member(s), added %d: %s; removed %d: %s.',
|
2013-10-22 22:49:37 +02:00
|
|
|
$author_handle,
|
|
|
|
count($add),
|
|
|
|
$this->renderHandleList($add),
|
|
|
|
count($rem),
|
|
|
|
$this->renderHandleList($rem));
|
|
|
|
} else if ($add) {
|
|
|
|
if (count($add) == 1 && (head($add) == $this->getAuthorPHID())) {
|
|
|
|
return pht(
|
|
|
|
'%s joined this project.',
|
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s added %d project member(s): %s.',
|
2013-10-22 22:49:37 +02:00
|
|
|
$author_handle,
|
|
|
|
count($add),
|
|
|
|
$this->renderHandleList($add));
|
|
|
|
}
|
|
|
|
} else if ($rem) {
|
|
|
|
if (count($rem) == 1 && (head($rem) == $this->getAuthorPHID())) {
|
|
|
|
return pht(
|
|
|
|
'%s left this project.',
|
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
2015-01-01 05:40:04 +01:00
|
|
|
'%s removed %d project member(s): %s.',
|
2013-10-22 22:49:37 +02:00
|
|
|
$author_handle,
|
|
|
|
count($rem),
|
|
|
|
$this->renderHandleList($rem));
|
|
|
|
}
|
|
|
|
}
|
2015-05-16 01:33:31 +02:00
|
|
|
break;
|
2016-02-08 20:24:32 +01:00
|
|
|
|
|
|
|
case self::TYPE_HASWORKBOARD:
|
|
|
|
if ($new) {
|
|
|
|
return pht(
|
|
|
|
'%s enabled the workboard for this project.',
|
|
|
|
$author_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s disabled the workboard for this project.',
|
|
|
|
$author_handle);
|
|
|
|
}
|
2016-02-12 15:19:26 +01:00
|
|
|
|
|
|
|
case self::TYPE_DEFAULT_SORT:
|
|
|
|
return pht(
|
|
|
|
'%s changed the default sort order for the project workboard.',
|
|
|
|
$author_handle);
|
|
|
|
|
|
|
|
case self::TYPE_DEFAULT_FILTER:
|
|
|
|
return pht(
|
|
|
|
'%s changed the default filter for the project workboard.',
|
|
|
|
$author_handle);
|
2016-02-16 15:52:32 +01:00
|
|
|
|
|
|
|
case self::TYPE_BACKGROUND:
|
|
|
|
return pht(
|
|
|
|
'%s changed the background color of the project workboard.',
|
|
|
|
$author_handle);
|
2013-10-22 22:49:37 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return parent::getTitle();
|
|
|
|
}
|
|
|
|
|
2015-05-02 02:34:43 +02:00
|
|
|
public function getTitleForFeed() {
|
|
|
|
$author_phid = $this->getAuthorPHID();
|
|
|
|
$object_phid = $this->getObjectPHID();
|
|
|
|
$author_handle = $this->renderHandleLink($author_phid);
|
|
|
|
$object_handle = $this->renderHandleLink($object_phid);
|
|
|
|
|
|
|
|
$old = $this->getOldValue();
|
|
|
|
$new = $this->getNewValue();
|
|
|
|
|
|
|
|
switch ($this->getTransactionType()) {
|
|
|
|
case self::TYPE_NAME:
|
|
|
|
if ($old === null) {
|
|
|
|
return pht(
|
|
|
|
'%s created %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s renamed %s from "%s" to "%s".',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
|
|
|
$old,
|
|
|
|
$new);
|
|
|
|
}
|
|
|
|
case self::TYPE_STATUS:
|
|
|
|
if ($old == 0) {
|
|
|
|
return pht(
|
|
|
|
'%s archived %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s activated %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
}
|
|
|
|
case self::TYPE_IMAGE:
|
|
|
|
// TODO: Some day, it would be nice to show the images.
|
|
|
|
if (!$old) {
|
|
|
|
return pht(
|
|
|
|
'%s set the image for %s to %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
|
|
|
$this->renderHandleLink($new));
|
|
|
|
} else if (!$new) {
|
|
|
|
return pht(
|
|
|
|
'%s removed the image for %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s updated the image for %s from %s to %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
|
|
|
$this->renderHandleLink($old),
|
|
|
|
$this->renderHandleLink($new));
|
|
|
|
}
|
|
|
|
|
|
|
|
case self::TYPE_ICON:
|
2015-12-16 16:53:13 +01:00
|
|
|
$set = new PhabricatorProjectIconSet();
|
|
|
|
|
2015-05-02 02:34:43 +02:00
|
|
|
return pht(
|
|
|
|
'%s set the icon for %s to %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
2015-12-16 16:53:13 +01:00
|
|
|
$set->getIconLabel($new));
|
2015-05-02 02:34:43 +02:00
|
|
|
|
|
|
|
case self::TYPE_COLOR:
|
|
|
|
return pht(
|
|
|
|
'%s set the color for %s to %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
|
|
|
PHUITagView::getShadeName($new));
|
|
|
|
|
|
|
|
case self::TYPE_LOCKED:
|
|
|
|
if ($new) {
|
|
|
|
return pht(
|
|
|
|
'%s locked %s membership.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
} else {
|
|
|
|
return pht(
|
|
|
|
'%s unlocked %s membership.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
case self::TYPE_SLUGS:
|
|
|
|
$add = array_diff($new, $old);
|
|
|
|
$rem = array_diff($old, $new);
|
|
|
|
|
|
|
|
if ($add && $rem) {
|
|
|
|
return pht(
|
|
|
|
'%s changed %s hashtag(s), added %d: %s; removed %d: %s.',
|
|
|
|
$author_handle,
|
|
|
|
$object_handle,
|
|
|
|
count($add),
|
|
|
|
$this->renderSlugList($add),
|
|
|
|
count($rem),
|
|
|
|
$this->renderSlugList($rem));
|
|
|
|
} else if ($add) {
|
|
|
|
return pht(
|
|
|
|
'%s added %d %s hashtag(s): %s.',
|
|
|
|
$author_handle,
|
|
|
|
count($add),
|
|
|
|
$object_handle,
|
|
|
|
$this->renderSlugList($add));
|
|
|
|
} else if ($rem) {
|
|
|
|
return pht(
|
|
|
|
'%s removed %d %s hashtag(s): %s.',
|
|
|
|
$author_handle,
|
|
|
|
count($rem),
|
|
|
|
$object_handle,
|
|
|
|
$this->renderSlugList($rem));
|
|
|
|
}
|
2016-02-08 20:24:32 +01:00
|
|
|
|
2015-05-02 02:34:43 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
return parent::getTitleForFeed();
|
|
|
|
}
|
|
|
|
|
2015-05-16 01:33:31 +02:00
|
|
|
public function getMailTags() {
|
|
|
|
$tags = array();
|
|
|
|
switch ($this->getTransactionType()) {
|
|
|
|
case self::TYPE_NAME:
|
|
|
|
case self::TYPE_SLUGS:
|
|
|
|
case self::TYPE_IMAGE:
|
|
|
|
case self::TYPE_ICON:
|
|
|
|
case self::TYPE_COLOR:
|
|
|
|
$tags[] = self::MAILTAG_METADATA;
|
|
|
|
break;
|
|
|
|
case PhabricatorTransactions::TYPE_EDGE:
|
|
|
|
$type = $this->getMetadata('edge:type');
|
|
|
|
$type = head($type);
|
|
|
|
$type_member = PhabricatorProjectProjectHasMemberEdgeType::EDGECONST;
|
|
|
|
$type_watcher = PhabricatorObjectHasWatcherEdgeType::EDGECONST;
|
|
|
|
if ($type == $type_member) {
|
|
|
|
$tags[] = self::MAILTAG_MEMBERS;
|
|
|
|
} else if ($type == $type_watcher) {
|
|
|
|
$tags[] = self::MAILTAG_WATCHERS;
|
|
|
|
} else {
|
|
|
|
$tags[] = self::MAILTAG_OTHER;
|
|
|
|
}
|
|
|
|
break;
|
|
|
|
case self::TYPE_STATUS:
|
|
|
|
case self::TYPE_LOCKED:
|
|
|
|
default:
|
|
|
|
$tags[] = self::MAILTAG_OTHER;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
return $tags;
|
|
|
|
}
|
|
|
|
|
2014-05-22 20:19:03 +02:00
|
|
|
private function renderSlugList($slugs) {
|
|
|
|
return implode(', ', $slugs);
|
|
|
|
}
|
2013-10-22 22:49:37 +02:00
|
|
|
|
2012-01-24 16:11:37 +01:00
|
|
|
}
|