You are here

class RestfulRateLimitRequest in RESTful 7

@file Contains RestfulRateLimitRequest.

Hierarchy

Expanded class hierarchy of RestfulRateLimitRequest

1 string reference to 'RestfulRateLimitRequest'
request.inc in plugins/rate_limit/request.inc

File

plugins/rate_limit/RestfulRateLimitRequest.class.php, line 8
Contains RestfulRateLimitRequest.

View source
class RestfulRateLimitRequest extends \RestfulRateLimitBase {

  /**
   * {@inheritdoc}
   */
  public function isRequestedEvent(array $request = array()) {
    return TRUE;
  }

}

Members

Namesort descending Modifiers Type Description Overrides
RestfulRateLimitBase::$limits protected property Array of maximum limit of requests across all endpoints per role.
RestfulRateLimitBase::$name protected property The event name.
RestfulRateLimitBase::$period protected property Period after which the rate limit is expired.
RestfulRateLimitBase::$resource protected property The resource name this object is limiting access to.
RestfulRateLimitBase::generateIdentifier public function Generates an identifier for the event and the request. 1
RestfulRateLimitBase::getLimit public function Get the rate limit. Returns the highest rate limit for the current account. 1
RestfulRateLimitBase::getPeriod public function Get the rate limit period.
RestfulRateLimitBase::loadRateLimitEntity public function Load rate limit entity.
RestfulRateLimitBase::setLimit public function Set the rate limit.
RestfulRateLimitBase::setPeriod public function Set the rate limit period.
RestfulRateLimitBase::__construct public function Constructor. 1
RestfulRateLimitRequest::isRequestedEvent public function Checks if the current request meets the event for the implementing class. Overrides RestfulRateLimitInterface::isRequestedEvent