Lines Matching refs:isWrite
89 * @param bool $isWrite Whether this is a write action
92 public static function check($action, $isWrite = false) { argument
94 $limit = $isWrite ? self::WRITE_LIMIT : self::DEFAULT_LIMIT;
95 $window = $isWrite ? self::WRITE_WINDOW : self::DEFAULT_WINDOW;
163 * @param bool $isWrite Whether this is a write action
166 public static function getRemaining($action, $isWrite = false) { argument
168 $limit = $isWrite ? self::WRITE_LIMIT : self::DEFAULT_LIMIT;
169 $window = $isWrite ? self::WRITE_WINDOW : self::DEFAULT_WINDOW;
267 * @param bool $isWrite Whether this is a write action
269 public static function addHeaders($action, $isWrite = false) { argument
270 $info = self::getRemaining($action, $isWrite);