You are here

public function RestfulRateLimitGlobal::getLimit in RESTful 7

All limits are the same for the global limit. Return the first one.

Overrides RestfulRateLimitBase::getLimit

1 call to RestfulRateLimitGlobal::getLimit()
RestfulRateLimitGlobal::isRequestedEvent in plugins/rate_limit/RestfulRateLimitGlobal.class.php
Only track the global limit for the current user if the variable is on.

File

plugins/rate_limit/RestfulRateLimitGlobal.class.php, line 37
Contains RestfulRateLimitGlobal

Class

RestfulRateLimitGlobal
@file Contains RestfulRateLimitGlobal

Code

public function getLimit(\stdClass $account = NULL) {
  return reset($this->limits);
}