You are here

public static function LingotekConfigChunk::minLid in Lingotek Translation 7.4

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

Return lid lower limit for the given chunk ID

Parameters

int $chunk_id:

Return value

int the lower limit for the given chunk ID

2 calls to LingotekConfigChunk::minLid()
LingotekConfigChunk::getMinLid 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 337
Defines LingotekConfigChunk.

Class

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

Code

public static function minLid($chunk_id) {
  return ($chunk_id - 1) * LINGOTEK_CONFIG_CHUNK_SIZE + 1;
}