Code |
Context $this->set('site',$site);
foreach($site['DataInfos'] as $dataInfo) {
if ($dataInfo['AnalyteStatus_old'] == 'Active') $results['activeAnalytes']++;
$site = array(
"SiteInfo" => array(
"SiteInfoRowID" => 182,
"MonitoringPlanID" => 49,
"SiteCode" => "R-1",
"SiteName" => "American River, 50 ft US of the discharge outfall",
"SiteStatus" => "Active",
"Latitude" => "38.603076",
"Longitude" => "-121.49255",
"Basin" => "Sacramento River",
"SubBasin" => "Sacramento River",
"TributaryWatershed" => "Valley-American",
"PhotoAvailable" => "No",
"GPSDataComment" => "estimated from Google Earth",
"SiteInfoInternalComments" => "",
"LastModified" => "2011-11-03 14:21:54"
),
"MonitoringPlan" => array(
"MonitoringPlanID" => 49,
"ProgramID" => 27,
"PermitID" => "CA0078875",
"MonitoringPlanName" => "California Department of General Services, Offices of State Publishing",
"MonitoringObjectives" => "The Discharger owns and operates a publishing facility that provides printing and communication services to State, Federal, and City agencies. Approximately a monthly average flow of 1.3 million gallons per day (mgd) of non-contact cooling water is discharged to the American River (a water of the United States) through Outfall 001. Well water is used as a cooling medium for heat exchange coils for air conditioning units located on the roof of the facility. These air conditioning units provide cooling for personnel and are not used for any publishing processes or equipment cooling. The facility only pumps well water when the air conditioning system is operational (typically from April through October.) The well water flows through a sand filtration system prior to being used in the air conditioning cooling system. The non-contact cooling water mixes with on-site stormwater runoff during the rainy season prior to being discharged through a dedicated pipe to the American River.",
"StartDate" => "2005-06-24 00:00:00",
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"MonPlanStatus" => "Active",
"URL" => "http://www.waterboards.ca.gov/centralvalley/board_decisions/adopted_orders/sacramento/r5-2005-0086.pdf",
"LastModified" => "2011-10-20 09:56:04"
),
"DataInfos" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
)
)
$plan = array(
"MonitoringPlan" => array(
"MonitoringPlanID" => 49,
"ProgramID" => 27,
"PermitID" => "CA0078875",
"MonitoringPlanName" => "California Department of General Services, Offices of State Publishing",
"MonitoringObjectives" => "The Discharger owns and operates a publishing facility that provides printing and communication services to State, Federal, and City agencies. Approximately a monthly average flow of 1.3 million gallons per day (mgd) of non-contact cooling water is discharged to the American River (a water of the United States) through Outfall 001. Well water is used as a cooling medium for heat exchange coils for air conditioning units located on the roof of the facility. These air conditioning units provide cooling for personnel and are not used for any publishing processes or equipment cooling. The facility only pumps well water when the air conditioning system is operational (typically from April through October.) The well water flows through a sand filtration system prior to being used in the air conditioning cooling system. The non-contact cooling water mixes with on-site stormwater runoff during the rainy season prior to being discharged through a dedicated pipe to the American River.",
"StartDate" => "2005-06-24 00:00:00",
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"MonPlanStatus" => "Active",
"URL" => "http://www.waterboards.ca.gov/centralvalley/board_decisions/adopted_orders/sacramento/r5-2005-0086.pdf",
"LastModified" => "2011-10-20 09:56:04"
),
"Program" => array(
"ProgramID" => 27,
"ProgramStatus" => "Active",
"MonitoringProgram" => "NPDES Self Monitoring Program",
"URL" => "http://www.waterboards.ca.gov/centralvalley/water_issues/waste_to_surface_water/",
"MonitoringObjectives" => "The NPDES Wastewater Program has responsibility for regulating wastewater discharges to surface waters. Primary
program activities include: (1) issuing NPDES permits (new and renewals), (2) monitoring discharger compliance with
permit requirements (review of discharger self-monitoring reports and compliance inspections), (3) taking enforcement action
as appropriate (Notices of Violations, Mandatory Minimum Penalties, etc.), (4) investigating spills and illegal discharges and
(5) handling petitions and litigation.",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"LastModified" => "2011-08-26 08:44:55"
),
"Sites" => array(
array(),
array()
),
"Contacts" => array(
array()
),
"MetaInfos" => array(
array(),
array()
),
"Organizations" => array(
array(),
array()
)
)
$program = array(
"Program" => array(
"ProgramID" => 27,
"ProgramStatus" => "Active",
"MonitoringProgram" => "NPDES Self Monitoring Program",
"URL" => "http://www.waterboards.ca.gov/centralvalley/water_issues/waste_to_surface_water/",
"MonitoringObjectives" => "The NPDES Wastewater Program has responsibility for regulating wastewater discharges to surface waters. Primary
program activities include: (1) issuing NPDES permits (new and renewals), (2) monitoring discharger compliance with
permit requirements (review of discharger self-monitoring reports and compliance inspections), (3) taking enforcement action
as appropriate (Notices of Violations, Mandatory Minimum Penalties, etc.), (4) investigating spills and illegal discharges and
(5) handling petitions and litigation.",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"LastModified" => "2011-08-26 08:44:55"
),
"Plans" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
),
"Organizations" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
)
)
$results = array(
"analyteCount" => 0,
"activeAnalytes" => 0,
"inActiveAnalytes" => 0
)
$dataInfo = array(
"DataInfoRowID" => 52899,
"MonitoringPlanID" => 49,
"SiteInfoRowID" => 182,
"SampleType" => "Water Quality",
"SampleTypeDetail" => "",
"AnalyteGroup" => "General Water Quality",
"AnalyteName" => "Dissolved Oxygen (DO)",
"AnalyteDetail" => "",
"FractionName" => "Not Applicable",
"Frequency" => "Quarterly",
"FrequencyDetail" => "",
"DataInternalComments" => "",
"LastModified" => "2011-03-21 13:27:26"
)
SiteInfosController::checkActive() - APP/controllers/site_infos_controller.php, line 496
Dispatcher::_invoke() - CORE/cake/dispatcher.php, line 204
Dispatcher::dispatch() - CORE/cake/dispatcher.php, line 171
[main] - APP/webroot/index.php, line 83