protected function getEntityString($e) { $str = ''; $arr = array($e->name, $e->blurb, $e->summary, $e->start_date, PersonTable::getRelatedOrgSummary($e)); $str = implode("\n", $arr); return $str; }
<tr> <td width="30%"> <?php echo $match['name']; ?> </td> <td> <?php foreach ($match['search_results'] as $entity) { ?> <?php echo link_to($entity['name'], EntityTable::getInternalUrl($entity), array('target' => '_new')); ?> <span style="font-size: 11px;"><?php echo excerpt($entity['blurb'], 100) . ' ' . PersonTable::getRelatedOrgSummary($entity); ?> </span> <br> <?php } ?> </td> </tr> <?php } ?> </table> <?php }
<?php } ?> <?php } elseif (isset($merge_link) && $entity['primary_ext'] == 'Person') { ?> <?php echo entity_link($entity); ?> <em><?php echo $entity['blurb']; ?> </em> <?php echo PersonTable::getRelatedOrgSummary($entity); ?> <?php } else { ?> <?php echo entity_link($entity); ?> <?php if (isset($search)) { ?> <?php $terms = explode(' ', str_replace('*', '', $search)); ?> <em><?php