<td><?php echo NagiosCommandPeer::doCount(new Criteria()); ?> </td> </tr> <tr class="odd"> <td><strong>Total Nagios Time Periods:</strong></td> <td><?php echo NagiosTimeperiodPeer::doCount(new Criteria()); ?> </td> </tr> <tr> <td><strong>Total Nagios Contacts:</strong></td> <td><?php echo NagiosContactPeer::doCount(new Criteria()); ?> </td> </tr> <tr class="odd"> <td><strong>Total Nagios Contact Groups:</strong></td> <td><?php echo NagiosContactGroupPeer::doCount(new Criteria()); ?> </td> </tr> <tr> <td><strong>Total Nagios Host Groups:</strong></td> <td><?php echo NagiosHostgroupPeer::doCount(new Criteria()); ?>
/** * Returns the number of related NagiosContact objects. * * @param Criteria $criteria * @param boolean $distinct * @param PropelPDO $con * @return int Count of related NagiosContact objects. * @throws PropelException */ public function countNagiosContactsRelatedByServiceNotificationPeriod(Criteria $criteria = null, $distinct = false, PropelPDO $con = null) { if ($criteria === null) { $criteria = new Criteria(NagiosTimeperiodPeer::DATABASE_NAME); } else { $criteria = clone $criteria; } if ($distinct) { $criteria->setDistinct(); } $count = null; if ($this->collNagiosContactsRelatedByServiceNotificationPeriod === null) { if ($this->isNew()) { $count = 0; } else { $criteria->add(NagiosContactPeer::SERVICE_NOTIFICATION_PERIOD, $this->id); $count = NagiosContactPeer::doCount($criteria, $con); } } else { // criteria has no effect for a new object if (!$this->isNew()) { // the following code is to determine if a new query is // called for. If the criteria is the same as the last // one, just return count of the collection. $criteria->add(NagiosContactPeer::SERVICE_NOTIFICATION_PERIOD, $this->id); if (!isset($this->lastNagiosContactRelatedByServiceNotificationPeriodCriteria) || !$this->lastNagiosContactRelatedByServiceNotificationPeriodCriteria->equals($criteria)) { $count = NagiosContactPeer::doCount($criteria, $con); } else { $count = count($this->collNagiosContactsRelatedByServiceNotificationPeriod); } } else { $count = count($this->collNagiosContactsRelatedByServiceNotificationPeriod); } } return $count; }