Esempio n. 1
0
 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;
 }