$typeData) { $name = $type !== 'expiration' ? Inflector::pluralize($type) : $type; $html .= '' . ucfirst(h($name)) . '
'; foreach ($typeData['orgs'] as $org => $orgData) { $extra = $org === $me['Organisation']['name'] ? ' class="bold"' : ""; if ($type == 'expiration') { $html .= '' . h($org) . ': ' . $this->Time->time($orgData['date']) . '
'; } else { $html .= '' . h($org) . ': ' . h($orgData['count']) . ' (' . $this->Time->time($orgData['date']) . ')
'; } } } $s = isset($objectSighting['sighting']['count']) ? intval($objectSighting['sighting']['count']) : 0; $f = isset($objectSighting['false-positive']['count']) ? intval($objectSighting['false-positive']['count']) : 0; $e = isset($objectSighting['expiration']['count']) ? intval($objectSighting['expiration']['count']) : 0; } else { $s = $f = $e = 0; } ?> (//) element('sparkline_new', array('scope' => 'object', 'id' => $objectId, 'csv' => $sightingsData['csv'][$objectId])); } ?>