QDataGridBase::GetDataGridRowHtml PHP Method

GetDataGridRowHtml() protected method

protected GetDataGridRowHtml ( $objObject )
    protected function GetDataGridRowHtml($objObject)
    {
        // Get the Default Style
        $objStyle = $this->objRowStyle;
        // Iterate through the Columns
        $strColumnsHtml = '';
        $intColumnIndex = 0;
        foreach ($this->objColumnArray as $objColumn) {
            try {
                $strHtml = $this->ParseColumnHtml($objColumn, $objObject);
                if ($objColumn->HtmlEntities) {
                    $strHtml = QApplication::HtmlEntities($strHtml);
                }
                // For IE
                if (QApplication::IsBrowser(QBrowserType::InternetExplorer) && $strHtml == '') {
                    $strHtml = ' ';
                }
            } catch (QCallerException $objExc) {
                $objExc->IncrementOffset();
                throw $objExc;
            }
            $strColumnsHtml .= sprintf("    <td id=\"%s_row%s_%s\" %s>%s</td>\r\n", $this->strControlId, $this->intCurrentRowIndex, $intColumnIndex, $objColumn->GetAttributes(), $strHtml);
            $intColumnIndex++;
        }
        // Apply AlternateRowStyle (if applicable)
        if ($this->intCurrentRowIndex % 2 == 1) {
            $objStyle = $objStyle->ApplyOverride($this->objAlternateRowStyle);
        }
        // Apply any Style Override (if applicable)
        if (is_array($this->objOverrideRowStyleArray) && array_key_exists($this->intCurrentRowIndex, $this->objOverrideRowStyleArray) && !is_null($this->objOverrideRowStyleArray[$this->intCurrentRowIndex])) {
            $objStyle = $objStyle->ApplyOverride($this->objOverrideRowStyleArray[$this->intCurrentRowIndex]);
        }
        // Finish up
        $strToReturn = sprintf("  <tr id=\"%s_row%s\" %s>\r\n%s  </tr>\r\n", $this->strControlId, $this->intCurrentRowIndex, $objStyle->GetAttributes(), $strColumnsHtml);
        $this->intCurrentRowIndex++;
        return $strToReturn;
    }