\n"; $bFoundNonZero = false; while($oRow = query_fetch_object($hResult)) { $oMaintainer = new maintainer(null, $oRow); if($oMaintainer->iNotificationLevel != 0) { $bFoundNonZero = true; echo "iMaintainerId: $oMaintainer->iMaintainerId
"; echo "iNotificationLevel: $oMaintainer->iNotificationLevel
"; echo "
\n"; } } if(!$bFoundNonZero) { echo "No maintainers have a non-zero notification level
\n"; } echo "
\n"; echo "
\n"; // retrieve all of the maintainers echo "Maintainers with notification iTargetLevel != 0
\n"; $hResult = maintainer::objectGetEntries(false, false); while($oRow = query_fetch_object($hResult)) { $oMaintainer = new maintainer(null, $oRow); $oNotificationUpdate = $oMaintainer->fetchNotificationUpdate(); if($oNotificationUpdate->iTargetLevel != 0) { echo "iMaintainerId: $oMaintainer->iMaintainerId
\n"; echo "iNotificationLevel: $oMaintainer->iNotificationLevel
\n"; echo "iTargetLevel: $oNotificationUpdate->iTargetLevel
\n"; echo "
\n"; } } apidb_footer(); ?>