23         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
   32             'name' => 
'sort:time_created:desc',
 
   33             'icon' => 
'sort-numeric-down-alt',
 
   37                     'property' => 
'time_created',
 
   38                     'property_type' => 
'attribute',
 
   39                     'direction' => 
'desc',
 
   42             'parent_name' => 
'sort:parent',
 
   47             'name' => 
'sort:time_created:asc',
 
   48             'icon' => 
'sort-numeric-down',
 
   52                     'property' => 
'time_created',
 
   53                     'property_type' => 
'attribute',
 
   57             'parent_name' => 
'sort:parent',
 
   73         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
   82             'name' => 
'sort:last_action:desc',
 
   83             'icon' => 
'sort-numeric-down-alt',
 
   84             'text' => 
elgg_echo(
'table_columns:fromView:last_action'),
 
   87                     'property' => 
'last_action',
 
   88                     'property_type' => 
'attribute',
 
   89                     'direction' => 
'desc',
 
   92             'parent_name' => 
'sort:parent',
 
  108         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
  117             'name' => 
'sort:last_login:asc',
 
  118             'icon' => 
'sort-numeric-down',
 
  119             'text' => 
elgg_echo(
'table_columns:fromView:last_login'),
 
  122                     'property' => 
'last_login',
 
  123                     'direction' => 
'asc',
 
  126             'parent_name' => 
'sort:parent',
 
  142         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
  151             'name' => 
'sort:name:asc',
 
  152             'icon' => 
'sort-alpha-down',
 
  156                     'property' => 
'name',
 
  157                     'property_type' => 
'metadata',
 
  158                     'direction' => 
'asc',
 
  162             'parent_name' => 
'sort:parent',
 
  167             'name' => 
'sort:name:desc',
 
  168             'icon' => 
'sort-alpha-down-alt',
 
  172                     'property' => 
'name',
 
  173                     'property_type' => 
'metadata',
 
  174                     'direction' => 
'desc',
 
  178             'parent_name' => 
'sort:parent',
 
  194         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
  203             'name' => 
'sort:title:asc',
 
  204             'icon' => 
'sort-alpha-down',
 
  208                     'property' => 
'title',
 
  209                     'property_type' => 
'metadata',
 
  210                     'direction' => 
'asc',
 
  214             'parent_name' => 
'sort:parent',
 
  219             'name' => 
'sort:title:desc',
 
  220             'icon' => 
'sort-alpha-down-alt',
 
  224                     'property' => 
'title',
 
  225                     'property_type' => 
'metadata',
 
  226                     'direction' => 
'desc',
 
  230             'parent_name' => 
'sort:parent',
 
  247         if (!(bool) $event->getParam(
'filter_sorting', true)) {
 
  255         $first_menu_name = $event->getParam(
'filter_sorting_selected');
 
  256         if (isset($first_menu_name) && !
$result->has($first_menu_name)) {
 
  257             $first_menu_name = 
null;
 
  260         if (!isset($first_menu_name)) {
 
  261             $result->sort([\ElggMenuBuilder::class, 
'compareByPriority']);
 
  264             foreach (
$result as $menu_item) {
 
  265                 if ($menu_item->getParentName() !== 
'sort:parent') {
 
  269                 if (!isset($first_menu_name)) {
 
  270                     $first_menu_name = $menu_item->getID();
 
  273                 if (!$menu_item->getSelected()) {
 
  277                 $first_menu_name = $menu_item->getID();
 
  282         if (!empty($first_menu_name)) {
 
  283             $menu_item = 
$result->get($first_menu_name);
 
  285             $menu_item->setPriority(99999);
 
  286             $menu_item->setName(
'sort:parent');
 
  287             $menu_item->setParentName(
'');
 
  288             $menu_item->setChildMenuOptions([
 
  289                 'display' => 
'dropdown',
 
  290                 'data-position' => json_encode([
 
  291                     'at' => 
'right bottom',
 
  293                     'collision' => 
'fit fit',
 
  296             $menu_item->setSelected(
false);
 
  297             $menu_item->setHref(
false);
 
Models an event passed to event handlers.
 
elgg_http_add_url_query_elements(string $url, array $elements)
Sets elements in a URL's query string.
 
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.
 
elgg_get_current_url()
Returns the current page's complete URL.
 
if(parse_url(elgg_get_site_url(), PHP_URL_PATH) !=='/') if(file_exists(elgg_get_root_path() . 'robots.txt'))
Set robots.txt.