* @github Joomla Members Manager * @copyright Copyright (C) 2015. All Rights Reserved * @license GNU/GPL Version 2 or later - http://www.gnu.org/licenses/gpl-2.0.html */ // No direct access to this file defined('JPATH_BASE') or die('Restricted access'); // get all the assessment Components $displayData->assessmentAvailable = MembersmanagerHelper::getAssessmentAvaillable($displayData->type, $displayData->account); $displayData->setAssessment = MembersmanagerHelper::checkArray($displayData->assessmentAvailable); // get names and values if found if ($displayData->setAssessment) { // get assessment details $displayData->assessments = array(); foreach ($displayData->assessmentAvailable as $_name => $assessment) { if (MembersmanagerHelper::checkArray($assessment)) { $displayData->assessments[$_name] = array(); foreach ($assessment as $_nr => $assess) { $displayData->assessments[$_name][$_nr] = MembersmanagerHelper::getAnyFormDetails($displayData->id, 'member', $assess->element, 'object', 'profile'); if (MembersmanagerHelper::checkArray($displayData->assessments[$_name][$_nr])) { foreach ($displayData->assessments[$_name][$_nr] as $_pointer => &$value) { if (isset($value->name) && MembersmanagerHelper::checkString($value->name)) { $value->name = $assess->name . ' - ' . $value->name; } else { $value->name = $assess->name; } } } elseif (MembersmanagerHelper::checkObject($displayData->assessments[$_name][$_nr])) { if (isset($displayData->assessments[$_name][$_nr]->name) && MembersmanagerHelper::checkString($displayData->assessments[$_name][$_nr]->name)) { $displayData->assessments[$_name][$_nr]->name = $assess->name . ' - ' . $displayData->assessments[$_name][$_nr]->name; } else { $displayData->assessments[$_name][$_nr]->name = $assess->name; } } } } elseif (MembersmanagerHelper::checkObject($assessment) && isset($assessment->element)) { $displayData->assessments[$_name] = MembersmanagerHelper::getAnyFormDetails($displayData->id, 'member', $assessment->element, 'object', 'profile'); if (MembersmanagerHelper::checkObject($displayData->assessments[$_name])) { if (isset($displayData->assessments[$_name]->name) && MembersmanagerHelper::checkString($displayData->assessments[$_name]->name)) { $displayData->assessments[$_name]->name = $assessment->name . ' - ' . $displayData->assessments[$_name]->name; } else { $displayData->assessments[$_name]->name = $assessment->name; } } } } } ?> setAssessment) : ?> type_name) && $displayData->_USER->authorise('member.view.type', 'com_membersmanager.member.' . (int) $displayData->id)) : ?>
type_name, 'W'), implode(', ', (array) array_keys($displayData->assessmentAvailable))); ?>
assessmentAvailable))); ?>