Stud.IP  5.4
ELearningUtils Class Reference

Static Public Member Functions

static loadClass ($cms)
 
static initElearningInterfaces ()
 
static getConfigValue ($name, $cms)
 
static setConfigValue ($name, $value, $cms)
 
static isCMSActive ($cms)
 
static getCMSSelectbox ($message, $check_active=true)
 
static getTypeSelectbox ($cms)
 
static getSearchfield ($message)
 
static getNewModuleForm ($cms)
 
static getMyAccountForm ($message, $my_account_cms)
 
static getNewAccountForm (&$new_account_cms)
 
static getCMSHeader ($title)
 
static getCMSFooter ($logo)
 
static getModuleHeader ($title)
 
static getHeader ($title)
 
static bench ($stri)
 
static showbench ()
 
static deleteCMSData ($cms_type)
 
static getIliasCourses ($sem_id)
 
static checkIntegrity ()
 

Member Function Documentation

◆ bench()

static bench (   $stri)
static

save timestamp

saves a timestamp for debugging and performance-check

Parameters
string$stridescription

◆ checkIntegrity()

static checkIntegrity ( )
static

check db-integrity

checks if there are broken links in the database

Returns
boolean successful

◆ deleteCMSData()

static deleteCMSData (   $cms_type)
static

delete cms-data

deletes all data belonging to the specified cms from stud.ip database

◆ getCMSFooter()

static getCMSFooter (   $logo)
static

get table-footer for connected cms

returns a table-footer for connected cms

Parameters
string$logosystem-logo
Returns
string returns html-code

◆ getCMSHeader()

static getCMSHeader (   $title)
static

get table-header for connected cms

returns a table-header for connected cms

Parameters
string$titletable-title
Returns
string returns html-code

◆ getCMSSelectbox()

static getCMSSelectbox (   $message,
  $check_active = true 
)
static

get cms-selectbox

returns a form to select a cms

Parameters
string$messagedescription-text
boolean$check_activeshow only activated systems
Returns
string returns html-code

◆ getConfigValue()

static getConfigValue (   $name,
  $cms 
)
static

gets config-value with given name from globals

Parameters
string$nameentry-name
string$cmssystem-type
Returns
boolean returns false if no cms is given

◆ getHeader()

static getHeader (   $title)
static

get Headline

returns a table with a headline

Parameters
string$titleheadline
Returns
string returns html-code

◆ getIliasCourses()

static getIliasCourses (   $sem_id)
static

get ilias courses

creates output of ilias courses linked to the chosen seminar. also updates object-connections.

Returns
array

◆ getModuleHeader()

static getModuleHeader (   $title)
static

get headline for modules

returns a table with a headline

Parameters
string$titleheadline
Returns
string returns html-code

◆ getMyAccountForm()

static getMyAccountForm (   $message,
  $my_account_cms 
)
static

get form for external user-account

returns a form for administration of external user-account

Parameters
stringmessage message-string
stringmy_account_cms cms-type
Returns
string returns html-code

◆ getNewAccountForm()

static getNewAccountForm ( $new_account_cms)
static

get form for new user

returns a form to add a user-account to connected cms

Parameters
string$new_account_cmssystem-type
Returns
string returns html-code

◆ getNewModuleForm()

static getNewModuleForm (   $cms)
static

get form for new content-module

returns a form to choose module-type and to create a new content-module

Parameters
string$cmssystem-type
Returns
string returns html-code

◆ getSearchfield()

static getSearchfield (   $message)
static

get searchfield

returns a form to search for modules

Parameters
string$messagedescription-text
Returns
string returns html-code

◆ getTypeSelectbox()

static getTypeSelectbox (   $cms)
static

get moduletype-selectbox

returns a form to select type for new contentmodule

Parameters
string$cmssystem-type
Returns
string returns html-code

◆ initElearningInterfaces()

static initElearningInterfaces ( )
static

◆ isCMSActive()

static isCMSActive (   $cms)
static

check cms-status

checks if connected content-management-system is activated

Parameters
string$cmssystem-type

◆ loadClass()

static loadClass (   $cms)
static

loads class ConnectedCMS for given system-type and creates an instance

Parameters
string$cmssystem-type

◆ setConfigValue()

static setConfigValue (   $name,
  $value,
  $cms 
)
static

set config-value

writes config-value with given name and value to database

Parameters
string$nameentry-name
string$valuevalue
string$cmssystem-type

◆ showbench()

static showbench ( )
static

show benchmark

shows saved timestamps with descriptions

Parameters
string$stridescription

The documentation for this class was generated from the following file: