public getFirstIndexInPage ( ) : integer | ||
리턴 | integer | the index of the item in data source, where the item is the first in current page |
public function getFirstIndexInPage()
{
if ($this->_dataSource !== null && $this->_allowPaging && !$this->_allowCustomPaging) {
return $this->_currentPageIndex * $this->_pageSize;
} else {
return 0;
}
}