You are here

class activity_handler_argument_activity_user in Activity 6.2

@file Argument handler to set the 'activity_user' used for all the filters

Hierarchy

Expanded class hierarchy of activity_handler_argument_activity_user

1 string reference to 'activity_handler_argument_activity_user'
activity_views_data in views/activity.views.inc
Implementation of hook_views_data().

File

views/activity_handler_argument_activity_user.inc, line 6
Argument handler to set the 'activity_user' used for all the filters

View source
class activity_handler_argument_activity_user extends views_handler_argument_user_uid {

  /**
   * override pre_query and set context
   */
  function pre_query() {
    $arg = NULL;
    $position = 0;

    // Iterate through each argument and find me
    foreach ($this->view->argument as $id => $arg) {
      $arg = isset($this->view->args[$position]) ? $this->view->args[$position] : NULL;
      $position++;
      if (isset($arg) || $this
        ->has_default_argument()) {
        if (!isset($arg)) {
          $arg = $this
            ->get_default_argument();
        }
      }
    }
    if (isset($arg)) {
      activity_views_access_user(user_load($arg));
    }
  }

  /**
   * Override query to prevent anything from happening
   */
  function query() {
  }

}

Members

Namesort descending Modifiers Type Description Overrides
activity_handler_argument_activity_user::pre_query function override pre_query and set context
activity_handler_argument_activity_user::query function Override query to prevent anything from happening