You are here

class views_plugin_access_hosting_site in Hosting 6.2

Access plugin that provides access control for site views.

Hierarchy

Expanded class hierarchy of views_plugin_access_hosting_site

1 string reference to 'views_plugin_access_hosting_site'
hosting_site_views_plugins in site/views/hosting_site.views.inc
Implementation of hook_views_plugins

File

site/views/views_plugin_access_hosting_site.inc, line 6

View source
class views_plugin_access_hosting_site extends views_plugin_access {

  /**
   * Determine if the current user has access or not.
   */
  function access($account) {
    return hosting_site_views_access($this->display->display_plugin, $this->display->id, $account);
  }

  /**
   * Return a string to display as the clickable title for the
   * access control.
   */
  function summary_title() {
    return t('Hosting site');
  }

  /**
   * Determine the access callback and arguments.
   *
   * This information will be embedded in the menu in order to reduce
   * performance hits during menu item access testing, which happens
   * a lot.
   *
   * @return an array; the first item should be the function to call,
   *   and the second item should be an array of arguments. The first
   *   item may also be TRUE (bool only) which will indicate no
   *   access control.)
   */
  function get_access_callback() {
    return array(
      'hosting_site_views_access',
      array(
        $this->display->display_plugin,
        $this->display->id,
      ),
    );
  }

}

Members

Namesort descending Modifiers Type Description Overrides
views_plugin_access_hosting_site::access function Determine if the current user has access or not.
views_plugin_access_hosting_site::get_access_callback function Determine the access callback and arguments.
views_plugin_access_hosting_site::summary_title function Return a string to display as the clickable title for the access control.