Back to Pagination class

Method getRowOffset

public int
getRowOffset
(mixed $index)
Return the rationalised offset for a row with a given index.
Parameters
  • int $index The row index
Returns
  • int Rationalised offset for a row with a given index.
Since
  • 1.5
Class: Pagination
Project: Joomla

Method getRowOffset - Source code

/**
 * Return the rationalised offset for a row with a given index.
 *
 * @param   integer  $index  The row index
 *
 * @return  integer  Rationalised offset for a row with a given index.
 *
 * @since   1.5
 */
public function getRowOffset($index)
{
    return $index + 1 + $this->limitstart;
}