ExampleForm::FirstNameColumn_Render PHP Méthode

FirstNameColumn_Render() public méthode

show the textbox. Otherwise, display the contents as is.
public FirstNameColumn_Render ( Person $objPerson )
$objPerson Person
    public function FirstNameColumn_Render(Person $objPerson)
    {
        if ($objPerson->Id == $this->intEditPersonId || $this->intEditPersonId == -1 && !$objPerson->Id) {
            return $this->txtFirstName->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->FirstName);
        }
    }