public function dtgPerson_PersonTypeId_Render(Person $objPerson)
 {
     if (!is_null($objPerson->PersonTypeId)) {
         return PersonType::ToString($objPerson->PersonTypeId);
     } else {
         return null;
     }
 }
Esempio n. 2
0
?>
<br/>
	Project Name: <?php 
_p($objProject->Name);
?>
<br/>
	Project Status: <?php 
_p(ProjectStatusType::ToString($objProject->ProjectStatusTypeId));
?>

	<h2>List the employees and their options.</h2>
<?php 
// Load all the people and expand the type array associated with the person table
$objClauses[] = QQ::ExpandAsArray(QQN::Person()->PersonType);
$objPeople = Person::LoadAll($objClauses);
foreach ($objPeople as $objPerson) {
    _p($objPerson->FirstName . ' ' . $objPerson->LastName . ': ');
    $intTypeArray = $objPerson->_PersonTypeArray;
    $strTypeArray = array();
    foreach ($intTypeArray as $intType) {
        $strTypeArray[] = PersonType::ToString($intType);
    }
    _p(implode(', ', $strTypeArray));
    _p('<br/>', false);
}
?>
</div>


<?php 
require '../includes/footer.inc.php';