Code |
Context $this->set('site',$site);
foreach($site['DataInfos'] as $dataInfo) {
if ($dataInfo['AnalyteStatus_old'] == 'Active') $results['activeAnalytes']++;
$site = array(
"SiteInfo" => array(
"SiteInfoRowID" => 2917,
"MonitoringPlanID" => 401,
"SiteCode" => "519AMNSAC",
"SiteName" => "American/Sacramento Confluence (Beach)",
"SiteStatus" => "Active",
"Latitude" => "38.59763",
"Longitude" => "-121.50736",
"Basin" => "Sacramento River",
"SubBasin" => "Sacramento River",
"TributaryWatershed" => "Valley-american",
"PhotoAvailable" => "",
"GPSDataComment" => "",
"SiteInfoInternalComments" => "",
"LastModified" => "2013-12-23 13:55:23"
),
"MonitoringPlan" => array(
"MonitoringPlanID" => 401,
"ProgramID" => 203,
"PermitID" => "",
"MonitoringPlanName" => "SWAMP Safe-to-Swim, 2011-2013",
"MonitoringObjectives" => "1) Evaluate seasonal and temporal trends of field parameters (temperature, dissolved oxygen, pH, conductivity, and turbidity), E. coli and total coliform concentrations at selected swimming areas
2) Evaluate pathogen (E. coli 0157:H7, Salmonella, Giardia, and Cryptosporidium concentrations at selected sites and their relationships to other constituents",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"MonPlanStatus" => "Active",
"URL" => "",
"LastModified" => "2014-01-14 16:23:03"
),
"DataInfos" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array()
)
)
$plan = array(
"MonitoringPlan" => array(
"MonitoringPlanID" => 401,
"ProgramID" => 203,
"PermitID" => "",
"MonitoringPlanName" => "SWAMP Safe-to-Swim, 2011-2013",
"MonitoringObjectives" => "1) Evaluate seasonal and temporal trends of field parameters (temperature, dissolved oxygen, pH, conductivity, and turbidity), E. coli and total coliform concentrations at selected swimming areas
2) Evaluate pathogen (E. coli 0157:H7, Salmonella, Giardia, and Cryptosporidium concentrations at selected sites and their relationships to other constituents",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"MonPlanStatus" => "Active",
"URL" => "",
"LastModified" => "2014-01-14 16:23:03"
),
"Program" => array(
"ProgramID" => 203,
"ProgramStatus" => "Active",
"MonitoringProgram" => "SWAMP Safe-to-Swim Study",
"URL" => "",
"MonitoringObjectives" => "To evaluate recreation beneficial use at selected sites within specific water bodies in the Central Valley Region, using E. coli as in indicator.",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"LastModified" => "2014-01-15 17:35:27"
),
"Sites" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
),
"Contacts" => array(),
"MetaInfos" => array(),
"Organizations" => array(
array()
)
)
$program = array(
"Program" => array(
"ProgramID" => 203,
"ProgramStatus" => "Active",
"MonitoringProgram" => "SWAMP Safe-to-Swim Study",
"URL" => "",
"MonitoringObjectives" => "To evaluate recreation beneficial use at selected sites within specific water bodies in the Central Valley Region, using E. coli as in indicator.",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => "",
"FundingSource" => "",
"LastModified" => "2014-01-15 17:35:27"
),
"Plans" => array(
array()
),
"Organizations" => array(
array()
)
)
$results = array(
"analyteCount" => 0,
"activeAnalytes" => 0,
"inActiveAnalytes" => 0
)
$dataInfo = array(
"DataInfoRowID" => 87211,
"MonitoringPlanID" => 401,
"SiteInfoRowID" => 2917,
"SampleType" => "Water Quality",
"SampleTypeDetail" => null,
"AnalyteGroup" => "General Water Quality",
"AnalyteName" => "Dissolved Oxygen (DO)",
"AnalyteDetail" => "",
"FractionName" => "Total",
"Frequency" => "Bimonthly",
"FrequencyDetail" => "",
"DataInternalComments" => "Analyte added via bulk edit",
"LastModified" => "2013-12-26 10:17:10"
)
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