ExampleForm::LastNameColumn_Render PHP Méthode

LastNameColumn_Render() public méthode

show the textbox. Otherwise, display the contents as is.
public LastNameColumn_Render ( Person $objPerson )
$objPerson Person
    public function LastNameColumn_Render(Person $objPerson)
    {
        if ($objPerson->Id == $this->intEditPersonId || $this->intEditPersonId == -1 && !$objPerson->Id) {
            return $this->txtLastName->RenderWithError(false);
        } else {
            // Because we are rendering with HtmlEntities set to false on this column
            // we need to make sure to escape the value
            return QApplication::HtmlEntities($objPerson->LastName);
        }
    }