QQNode::GetDataGridHtmlHelper PHP Method

GetDataGridHtmlHelper() protected method

protected GetDataGridHtmlHelper ( $strPropertyName, $strType, $strClassName )
    protected function GetDataGridHtmlHelper($strPropertyName, $strType, $strClassName)
    {
        $strToReturn = $strPropertyName;
        switch ($strType) {
            case 'QDateTime':
                return sprintf('(%s) ? %s->ToString() : null', $strToReturn, $strToReturn);
            case 'boolean':
                return sprintf('(%s) ? QApplication::Translate(\'true\') : QApplication::Translate(\'false\') ', $strToReturn);
            default:
                if (class_exists($strClassName)) {
                    return sprintf('(%s) ? %s->__toString() : null;', $strToReturn, $strToReturn);
                } else {
                    return $strToReturn;
                }
        }
    }