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