Stud.IP  6.0
studip_cli_env.inc.php File Reference

Functions

 CliErrorHandler ($errno, $errstr, $errfile, $errline)
 
 parse_msg_to_clean_text ($long_msg, $separator="§")
 

Variables

 $STUDIP_BASE_PATH = realpath( __DIR__ . '/..')
 
 $include_path = get_include_path()
 
 $GLOBAL_CACHING_ENABLE = $GLOBALS['CACHING_ENABLE']
 
 $CACHING_ENABLE = false
 
 $auth = new Seminar_Auth()
 
$auth auth = ['uid' => 'cli'
 
$auth $faked_root = new User()
 
$faked_root user_id = 'cli'
 
$faked_root username = 'cli'
 
$faked_root perms = 'root'
 
 $user = new Seminar_User($faked_root)
 
 $perm = new Seminar_Perm()
 

Function Documentation

◆ CliErrorHandler()

CliErrorHandler (   $errno,
  $errstr,
  $errfile,
  $errline 
)

studip_cli_env.inc.php

sets up a faked Stud.IP environment with usable $auth, $user and $perm objects for a faked 'root' user, sets custom error handler wich writes to STDERR

Author
André Noack noack.nosp@m.@dat.nosp@m.a-que.nosp@m.st.d.nosp@m.e, Suchi & Berg GmbH info@.nosp@m.data.nosp@m.-ques.nosp@m.t.de public

◆ parse_msg_to_clean_text()

parse_msg_to_clean_text (   $long_msg,
  $separator = "§" 
)

Variable Documentation

◆ $auth

$auth = new Seminar_Auth()

◆ $CACHING_ENABLE

$CACHING_ENABLE = false

◆ $faked_root

$auth $faked_root = new User()

◆ $GLOBAL_CACHING_ENABLE

$GLOBAL_CACHING_ENABLE = $GLOBALS['CACHING_ENABLE']

◆ $include_path

$include_path = get_include_path()

◆ $perm

$perm = new Seminar_Perm()

◆ $STUDIP_BASE_PATH

global $STUDIP_BASE_PATH = realpath( __DIR__ . '/..')

◆ $user

$user = new Seminar_User($faked_root)

◆ auth

$auth auth = ['uid' => 'cli'

◆ perms

$faked_root perms = 'root'

◆ user_id

$faked_root user_id = 'cli'

◆ username

$faked_root username = 'cli'