Code |
Context $this->set('site',$site);
foreach($site['DataInfos'] as $dataInfo) {
if ($dataInfo['AnalyteStatus_old'] == 'Active') $results['activeAnalytes']++;
$site = array(
"SiteInfo" => array(
"SiteInfoRowID" => 894,
"MonitoringPlanID" => 285,
"SiteCode" => "B9D8221131",
"SiteName" => "Sacramento River at Hood",
"SiteStatus" => "Active",
"Latitude" => "38.3677",
"Longitude" => "-121.5205",
"Basin" => "Delta",
"SubBasin" => "North Delta",
"TributaryWatershed" => "Sacramento Delta",
"PhotoAvailable" => "No",
"GPSDataComment" => "",
"SiteInfoInternalComments" => "Changed SubBasin from Delta per TJ 4/30/09.",
"LastModified" => "2016-08-26 15:26:39"
),
"MonitoringPlan" => array(
"MonitoringPlanID" => 285,
"ProgramID" => 105,
"PermitID" => "None",
"MonitoringPlanName" => "Municipal Water Quality Investigations",
"MonitoringObjectives" => "None",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => null,
"FundingSource" => null,
"MonPlanStatus" => "Active",
"URL" => null,
"LastModified" => "2010-02-01 00:00:00"
),
"DataInfos" => array(
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array(),
array()
)
)
$plan = array(
"MonitoringPlan" => array(
"MonitoringPlanID" => 285,
"ProgramID" => 105,
"PermitID" => "None",
"MonitoringPlanName" => "Municipal Water Quality Investigations",
"MonitoringObjectives" => "None",
"StartDate" => null,
"EndDate" => null,
"AnnualBudget" => null,
"FundingSource" => null,
"MonPlanStatus" => "Active",
"URL" => null,
"LastModified" => "2010-02-01 00:00:00"
),
"Program" => array(
"ProgramID" => 105,
"ProgramStatus" => "Active",
"MonitoringProgram" => "Municipal Water Quality Investigations",
"URL" => "http://www.water.ca.gov/waterquality/drinkingwater/",
"MonitoringObjectives" => "Provide monitoring data to MWQI Program participants and other identified stakeholders, such as CALFED, on key constituents of concern.",
"StartDate" => "1982-01-01 00:00:00",
"EndDate" => null,
"AnnualBudget" => "$2.4M",
"FundingSource" => "15 municipal state water agencies (3-year contract",
"LastModified" => "2016-08-30 12:11:28"
),
"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()
),
"Contacts" => array(
array()
),
"MetaInfos" => array(
array()
),
"Organizations" => array(
array()
)
)
$program = array(
"Program" => array(
"ProgramID" => 105,
"ProgramStatus" => "Active",
"MonitoringProgram" => "Municipal Water Quality Investigations",
"URL" => "http://www.water.ca.gov/waterquality/drinkingwater/",
"MonitoringObjectives" => "Provide monitoring data to MWQI Program participants and other identified stakeholders, such as CALFED, on key constituents of concern.",
"StartDate" => "1982-01-01 00:00:00",
"EndDate" => null,
"AnnualBudget" => "$2.4M",
"FundingSource" => "15 municipal state water agencies (3-year contract",
"LastModified" => "2016-08-30 12:11:28"
),
"Plans" => array(
array(),
array(),
array(),
array()
),
"Organizations" => array(
array()
)
)
$results = array(
"analyteCount" => 0,
"activeAnalytes" => 0,
"inActiveAnalytes" => 0
)
$dataInfo = array(
"DataInfoRowID" => 68749,
"MonitoringPlanID" => 285,
"SiteInfoRowID" => 894,
"SampleType" => "Water Quality",
"SampleTypeDetail" => "",
"AnalyteGroup" => "Major Ions & Minerals",
"AnalyteName" => "Bromide",
"AnalyteDetail" => "",
"FractionName" => "Not Applicable",
"Frequency" => "Monthly",
"FrequencyDetail" => "",
"DataInternalComments" => "",
"LastModified" => "2016-08-30 11:26:20"
)
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