You are here

interface GoogleAnalyticsCounterAppManagerInterface in Google Analytics Counter 8.3

Class GoogleAnalyticsCounterAppManager.

@package Drupal\google_analytics_counter

Hierarchy

Expanded class hierarchy of GoogleAnalyticsCounterAppManagerInterface

All classes that implement GoogleAnalyticsCounterAppManagerInterface

5 files declare their use of GoogleAnalyticsCounterAppManagerInterface
GoogleAnalyticsCounterAuthForm.php in src/Form/GoogleAnalyticsCounterAuthForm.php
GoogleAnalyticsCounterConfigureTypesForm.php in src/Form/GoogleAnalyticsCounterConfigureTypesForm.php
GoogleAnalyticsCounterController.php in src/Controller/GoogleAnalyticsCounterController.php
GoogleAnalyticsCounterFilter.php in src/Plugin/Filter/GoogleAnalyticsCounterFilter.php
GoogleAnalyticsCounterSettingsForm.php in src/Form/GoogleAnalyticsCounterSettingsForm.php

File

src/GoogleAnalyticsCounterAppManagerInterface.php, line 11

Namespace

Drupal\google_analytics_counter
View source
interface GoogleAnalyticsCounterAppManagerInterface {

  /**
   * Request report data.
   *
   * @param array $parameters
   *   An associative array containing:
   *   - profile_id: required [default='ga:profile_id']
   *   - dimensions: optional [ga:pagePath]
   *   - metrics: required [ga:pageviews]
   *   - sort: optional [ga:pageviews]
   *   - start-date: [default=-1 week]
   *   - end_date: optional [default=today]
   *   - start_index: [default=1]
   *   - max_results: optional [default=10,000].
   *   - filters: optional [default=none]
   *   - segment: optional [default=none]
   * @param array $cache_options
   *   An optional associative array containing:
   *   - cid: optional [default=md5 hash]
   *   - expire: optional [default=CACHE_TEMPORARY]
   *   - refresh: optional [default=FALSE].
   *
   * @return \Drupal\google_analytics_counter\GoogleAnalyticsCounterFeed|object
   *   A new GoogleAnalyticsCounterFeed object
   */
  public function reportData($parameters = [], $cache_options = []);

  /**
   * Update the path counts.
   *
   * @param int $index
   *   The index of the chunk to fetch and update.
   *
   * This function is triggered by hook_cron().
   *
   * @throws \Exception
   */
  public function gacUpdatePathCounts($index = 0);

  /**
   * Save the pageview count for a given node.
   *
   * @param integer $nid
   *   The node id.
   * @param string $bundle
   *   The content type of the node.
   * @param int $vid
   *   Revision id value.
   *
   * @throws \Exception
   */
  public function gacUpdateStorage($nid, $bundle, $vid);

  /**
   * Get the count of pageviews for a path.
   *
   * @return string
   *   Count of page views.
   */
  public function gacDisplayCount();

}

Members

Namesort descending Modifiers Type Description Overrides
GoogleAnalyticsCounterAppManagerInterface::gacDisplayCount public function Get the count of pageviews for a path. 1
GoogleAnalyticsCounterAppManagerInterface::gacUpdatePathCounts public function Update the path counts. 1
GoogleAnalyticsCounterAppManagerInterface::gacUpdateStorage public function Save the pageview count for a given node. 1
GoogleAnalyticsCounterAppManagerInterface::reportData public function Request report data. 1