38 : array
39 {
40 $short_desc = $this->
settings->get(
'rep_shorten_description');
41 $short_desc_max_length = (
int) $this->
settings->get(
'rep_shorten_description_length');
42
43 $favourites = $this->fav_manager->getFavouritesOfUser(
44 $this->actor->getId(),
45 count($object_type_white_list) > 0 ? $object_type_white_list : null
46 );
47 $access_granted_favourites = [];
48 foreach ($favourites as $idx => $favourite) {
49 if (!$this->
access->checkAccess(
'visible',
'', $favourite[
'ref_id'])) {
50 continue;
51 }
52
53 if ($short_desc && $short_desc_max_length !== 0) {
55 }
56
57 $access_granted_favourites[$idx] = $favourite;
58 }
59 return $access_granted_favourites;
60 }
static shortenTextExtended(string $a_str, int $a_len, bool $a_dots=false, bool $a_next_blank=false, bool $a_keep_extension=false)