Stud.IP  4.0
 All Data Structures Namespaces Files Functions Variables Groups
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 (   $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 (   $long_msg,
  $separator = "§" 
)

Variable Documentation

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