This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
public static function getAllIndicatorValuesOverview($userId = null) { | |
$surveys = self::getConnection()->query( | |
'SELECT surveys.surveyId,surveys.year,user.organizationName | |
FROM surveys | |
LEFT JOIN user ON surveys.userId=user.userId' | |
)->fetchAll(); | |
foreach($surveys as &$survey) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? php | |
protected function createComponentIndicatorValuesDatagrid($name) { | |
if($this->user->isInRole('admin')) { | |
$values = IndicatorModel::getIndicatorValuesForGrid(); | |
} else { | |
$values = IndicatorModel::getIndicatorValuesForGrid($this->user->id); | |
} | |
$indicators = IndicatorModel::getAllIndicators(); |