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'));
                ?>
          &nbsp;
          <span style="font-size: 11px;"><?php 
                echo excerpt($entity['blurb'], 100) . '&nbsp;' . PersonTable::getRelatedOrgSummary($entity);
                ?>
</span>
          <br>
        <?php 
            }
            ?>
      </td>
    </tr>
  <?php 
        }
        ?>
  
</table>
<?php 
    }
示例#3
0
        <?php 
    }
    ?>
      <?php 
} elseif (isset($merge_link) && $entity['primary_ext'] == 'Person') {
    ?>
        <?php 
    echo entity_link($entity);
    ?>
&nbsp;
        <em><?php 
    echo $entity['blurb'];
    ?>
</em>
        <?php 
    echo PersonTable::getRelatedOrgSummary($entity);
    ?>
      <?php 
} else {
    ?>
        <?php 
    echo entity_link($entity);
    ?>
&nbsp;
        <?php 
    if (isset($search)) {
        ?>
          <?php 
        $terms = explode(' ', str_replace('*', '', $search));
        ?>
          <em><?php