/** * Get a complete list of all ARPs in the system * * @return array */ public function getARPList() { $arp = new sspmod_janus_ARP(); return $arp->getARPlist(); }
$allowed_workflow = array(); $allowed_workflow[] = $entity->getWorkflow(); $workflowstates = array(); if (isset($workflow[$entity->getWorkflow()])) { $workflowstates = $janus_config->getValue('workflowstates'); foreach ($workflow[$entity->getWorkflow()] as $k_wf => $v_wf) { $tmp = array_intersect($user->getType(), $v_wf['role']); if (!empty($tmp) || in_array('all', $v_wf['role'])) { $allowed_workflow[] = $k_wf; } } } else { $workflowstates = array($entity->getWorkflow() => array('name' => array('en' => $entity->getWorkflow()), 'description' => array('en' => 'No description available. Workflow state `' . $entity->getWorkflow() . '` is not defined in the configuration file. This is probably an error. Contact your system administrator to get this error fixed.'))); } $arp = new sspmod_janus_ARP(); $arplist = $arp->getARPlist(); array_unshift($arplist, array("aid" => '0', "name" => "No ARP", "description" => "No ARP")); $et->data['entity_state'] = $entity->getWorkflow(); $et->data['entity_type'] = $entity->getType(); $et->data['revisionid'] = $entity->getRevisionid(); $et->data['types'] = $janus_config->getValue('types'); $et->data['workflowstates'] = $workflowstates; $et->data['access'] = $janus_config->getValue('access'); $et->data['workflow'] = $allowed_workflow; $et->data['entity'] = $entity; $et->data['user'] = $user; $et->data['uiguard'] = $guard; $et->data['mcontroller'] = $mcontroller; $et->data['blocked_entities'] = $mcontroller->getBlockedEntities(); $et->data['allowed_entities'] = $mcontroller->getAllowedEntities(); $et->data['disable_consent'] = $mcontroller->getDisableConsent();