QDataGridBase::GetPaginatorRowHtml PHP Method

GetPaginatorRowHtml() protected method

protected GetPaginatorRowHtml ( $objPaginator )
    protected function GetPaginatorRowHtml($objPaginator)
    {
        $strToReturn = "  <span class=\"right\">";
        $strToReturn .= $objPaginator->Render(false);
        $strToReturn .= "</span>\r\n  <span class=\"left\">";
        if ($this->TotalItemCount > 0) {
            $intStart = ($this->PageNumber - 1) * $this->ItemsPerPage + 1;
            $intEnd = $intStart + count($this->DataSource) - 1;
            $strToReturn .= sprintf($this->strLabelForPaginated, $this->strNounPlural, $intStart, $intEnd, $this->TotalItemCount);
        } else {
            $intCount = count($this->objDataSource);
            if ($intCount == 0) {
                $strToReturn .= sprintf($this->strLabelForNoneFound, $this->strNounPlural);
            } else {
                if ($intCount == 1) {
                    $strToReturn .= sprintf($this->strLabelForOneFound, $this->strNoun);
                } else {
                    $strToReturn .= sprintf($this->strLabelForMultipleFound, $intCount, $this->strNounPlural);
                }
            }
        }
        $strToReturn .= "</span>\r\n";
        return $strToReturn;
    }