You are here

public static function LingotekConfigChunk::maxLid in Lingotek Translation 7.5

Same name and namespace in other branches
  1. 7.3 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::maxLid()
  2. 7.4 lib/Drupal/lingotek/LingotekConfigChunk.php \LingotekConfigChunk::maxLid()

Return lid upper limit for the given chunk ID

Parameters

int $chunk_id:

Return value

int the upper limit for the given chunk ID

2 calls to LingotekConfigChunk::maxLid()
LingotekConfigChunk::getMaxLid in lib/Drupal/lingotek/LingotekConfigChunk.php
LingotekConfigChunk::getSegmentIdsById in lib/Drupal/lingotek/LingotekConfigChunk.php
Return the segments by lid (from locales source) for a given chunk ID

File

lib/Drupal/lingotek/LingotekConfigChunk.php, line 384
Defines LingotekConfigChunk.

Class

LingotekConfigChunk
A class wrapper for Lingotek-specific behavior on ConfigChunks.

Code

public static function maxLid($chunk_id) {
  return $chunk_id * LINGOTEK_CONFIG_CHUNK_SIZE;
}