* @access public
* @modulegroup elearning_interface_modules
* @module Ilias4ConnectedLink
* @package ELearning-Interface
*/
class Ilias4ConnectedLink extends Ilias3ConnectedLink
{
/**
* constructor
*
* init class.
* @access
* @param string $cms system-type
*/
function __construct($cms)
{
parent::__construct($cms);
$this->cms_link = "ilias3_referrer.php";
}
/**
* get module link
*
* returns link to the specified ilias object. works without initializing module-class.
* @access public
* @return string html-code
*/
function getModuleLink($title, $module_id, $module_type)
{
global $connected_cms, $view, $search_key, $cms_select, $current_module;
if ($connected_cms[$this->cms_type]->isAuthNecessary() AND (! $connected_cms[$this->cms_type]->user->isConnected())) {
return false;
}
$output = "cms_link . "?"
. "client_id=" . $connected_cms[$this->cms_type]->getClientId()
. "&cms_select=" . $this->cms_type
. "&ref_id=" . $module_id
. "&type=" . $module_type
. "&target=start"). "\" target=\"_blank\" rel=\"noopener noreferrer\">";
$output .= $title;
$output .= " ";
return $output;
}
/**
* get admin module links
*
* returns links add or remove a module from course
* @access public
* @return string returns html-code
*/
function getAdminModuleLinks()
{
global $connected_cms, $view, $search_key, $cms_select, $current_module;
$output = '';
$result = false;
if (!$connected_cms[$this->cms_type]->content_module[$current_module]->isDummy()) {
$result = $connected_cms[$this->cms_type]->soap_client->getPath($connected_cms[$this->cms_type]->content_module[$current_module]->getId());
}
if ($result) {
$output .= "Pfad: ". htmlReady($result) . "
";
}
$output .= "