Stud.IP  2.0 Revision 48548
 All Data Structures Namespaces Files Functions Variables Pages
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( dirname(__FILE__) . '/..')
 $include_path = get_include_path()
 $auth = new Seminar_Auth()
$auth auth
 $user = new Seminar_User()
$user fake_user = true
$user register_globals = false
 $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 = "§" 
)

Here is the call graph for this function:

Variable Documentation

$auth = new Seminar_Auth()
$include_path = get_include_path()
$perm = new Seminar_Perm()
$STUDIP_BASE_PATH = realpath( dirname(__FILE__) . '/..')
$user = new Seminar_User()
$auth auth
Initial value:
array('uid' => 'cli',
'uname' => 'cli',
'perm' => 'root')
$user fake_user = true
$user register_globals = false