/**
  * Given a person, this returns formatted information about the activities of the person
  * @param PersonEntity $person
  * @return array
  */
 public static function getFormattedActivitiesOfPerson($person)
 {
     /** @var PersonEntity $person */
     $activities = $person->getActivities();
     $ret = [];
     foreach ($activities as $activity) {
         if (!$activity->isHidden()) {
             $ret[] = Activity::getFormattedShortData($activity);
         }
     }
     return $ret;
 }