public function createHistoryGroup() { // TODO: subscribe the project to this task's history // Also, get some more soju. It's been awhile. $group = new HistoryGroup(); $group->setName('feature-history-' . $this->getUuid()); $group->save(); $event = new HistoryEvent(); $event->setHistoryGroupId($group->getId()); $event->setTitle('History group created for ' . $this->getTitle()); $event->setText('The ' . $this->getTypeInWords() . ' "' . $this->getTitle() . '" has been created and a new history group applied.'); $event->save(); return $group; }
public function createHistoryGroup() { $group = new HistoryGroup(); $group->setName($this->getUuid() . '-project-history'); $group->save(); $event = new HistoryEvent(); $event->setHistoryGroupId($group->getId()); $event->setTitle('History group created for ' . $this->getTitle()); $event->setText('The project ' . $this->getTitle() . ' has been created and a new history group applied.'); $event->save(); return $group; }
public function createHistoryGroup() { $group = new HistoryGroup(); $group->setName($this->getUuid() . '-user-history'); $group->save(); $event = new HistoryEvent(); $event->setHistoryGroupId($group->getId()); $event->setTitle('History tracking created for ' . $this->getFullName()); $event->setText('You keep track of all of your recent activity via your history tracker.'); $event->save(); $this->subscribeToHistory($group->getName()); return $group; }