ILIAS
Release_3_10_x_branch Revision 61812
|
Public Member Functions | |
ilSetupGUI () | |
Constructor. | |
cmdInstall () | |
process valid commands for pre-installation status | |
cmdAdmin () | |
process valid commands for admins | |
cmdClient () | |
process valid commands for all clients | |
displayClientOverview () | |
display client overview panel | |
setDisplayMode ($a_mode) | |
set display mode to 'view' or 'setup' 'setup' -> show status panel and (prev/next) navigation buttons 'view' -> show overall status and tabs under title bar | |
displayHeader () | |
display header with admin links and language flags | |
displayFooter () | |
page output and set title | |
displayNavButtons () | |
display navigation buttons | |
SetButtonPrev ($a_cmd=0, $a_lng=0) | |
set previous navigation button | |
SetButtonNext ($a_cmd, $a_lng=0) | |
set next navigation button | |
displayPreliminaries () | |
display preliminaries page | |
displayMasterSetup ($a_det=false) | |
display master setup form & process form input | |
loginClient () | |
login to a client | |
displayLogin () | |
display login form and process form | |
displayClientList () | |
display client list and process form input | |
determineToolsPath () | |
Determine tools paths. | |
determineToolsPathInstall () | |
Determine tools paths. | |
determineTools ($a_tools="") | |
Determine Tools. | |
changeMasterSettings ($a_det=false) | |
display master settings and process form input | |
displayIni () | |
display setup in step | |
displayError ($a_message) | |
display error page | |
displayLogout () | |
display logout page | |
displayProcessPanel () | |
display process panel | |
displayStatusPanel () | |
display status panel | |
checkDisplayMode ($a_title="") | |
determine display mode and load according html layout | |
checkPanelMode () | |
determine display mode and load correct panel | |
displayStartup () | |
display intro page for the first client installation | |
displayDatabase () | |
display database form and process form input | |
displayLanguages () | |
display language form and process form input | |
displayContactData () | |
display contact data form and process form input | |
displayNIC () | |
display nic registration form and process form input | |
displayTools () | |
display tools | |
reloadControlStructure () | |
reload control structure | |
changeMasterPassword () | |
display change password form and process form input | |
displayFinishSetup () | |
display finish setup page | |
displayDeleteConfirmation () | |
display delete client confirmation form and process form input | |
changeAccessMode ($a_back) | |
enable/disable access to a client | |
changeDefaultClient () | |
set defualt client | |
validateSetup () | |
validatesetup status again and set access mode of the first client to online | |
jumpToFirstUnfinishedSetupStep () | |
if setting up a client was not finished, jump back to the first uncompleted setup step | |
toggleClientList () | |
enable/disable client list on index page | |
Public Member Functions inherited from ilSetup | |
ilSetup ($a_auth, $a_auth_type) | |
constructor | |
init () | |
init setup load settings from ilias.ini if exists and sets some constants | |
saveNewClient () | |
saves client.ini & updates client list in ilias.ini | |
updateNewClient ($a_old_client_id) | |
update client.ini & move data dirs does not work correctly at this time - DISABLED | |
execQuery ($db, $str) | |
execute a query | |
createDatabase ($a_collation="") | |
create client database | |
installDatabase () | |
set the database data | |
getline ($fp, $delim) | |
readDump ($db, $file) | |
execute a query | |
checkIniFileExists () | |
check if inifile exists | |
checkWritable ($a_dir="..") | |
check for writable directory | |
checkCreatable ($a_dir="..") | |
check for permission to create new folders in specified directory | |
checkCookiesEnabled () | |
check cookies enabled | |
checkPHPVersion () | |
check for PHP version | |
checkMySQL () | |
Check MySQL. | |
checkAuth () | |
check authentication status | |
checkDom () | |
Check MySQL. | |
checkXsl () | |
Check MySQL. | |
checkGd () | |
Check MySQL. | |
checkMemoryLimit () | |
Check Memory Limit. | |
queryPreliminaries () | |
preliminaries | |
checkPreliminaries () | |
check all prliminaries | |
getPassword () | |
get setup master password | |
setPassword ($a_password) | |
set setup master password | |
loginAsClient ($a_auth_data) | |
process client login | |
loginAsAdmin ($a_password) | |
process setup admin login | |
newClient ($a_client_id=0) | |
creates a client object in $this->client | |
getStatus ($client=0) | |
coumpute client status | |
checkFinish (&$client) | |
check if client setup was finished | |
checkAccess (&$client) | |
check client access status | |
checkClientIni (&$client) | |
check client ini status | |
checkClientDatabase (&$client) | |
check client db status | |
checkClientLanguages (&$client) | |
check client installed languages status | |
checkClientContact (&$client) | |
check client contact data status | |
checkClientNIC (&$client) | |
check client nic status | |
isInstalled () | |
check if client's db is installed | |
isAuthenticated () | |
check if current user is authenticated | |
isAdmin () | |
check if current user is admin | |
saveMasterSetup ($a_formdata) | |
saves intial settings | |
updateMasterSettings ($a_formdata) | |
updates settings | |
checkToolsSetup ($a_formdata) | |
check pathes to 3rd party software | |
checkDataDirSetup ($a_formdata) | |
check datadir path | |
checkPasswordSetup ($a_formdata) | |
check setup password | |
checkLogSetup ($a_formdata) | |
check log path | |
getError () | |
get Error message | |
_ilSetup () | |
destructor | |
testConvert ($a_convert_path) | |
Check convert program. | |
testJava ($a_java_path) | |
Check JVM. | |
testLatex ($a_latex_url) | |
Check latex cgi script. | |
testZip ($a_zip_path) | |
Check zip program. | |
testUnzip ($a_unzip_path) | |
Check unzip program. | |
testHtmldoc ($a_htmldoc_path) | |
Check htmldoc program. | |
unzipTiny () | |
unzip ($a_file, $overwrite=false) | |
unzip file |
Data Fields | |
$tpl | |
$lng | |
$log | |
$btn_prev_on = false | |
$btn_prev_cmd | |
$btn_prev_lng | |
$btn_next_on = false | |
$btn_next_cmd | |
$btn_next_lng | |
$revision | |
$version | |
$lang | |
$cmd | |
$display_mode = "view" | |
Data Fields inherited from ilSetup | |
$ini | |
$ini_file_path | |
$error = "" | |
$ini_ilias_exists = false | |
$ini_client_exists = false | |
$setup_defaults | |
$ilias_nic_server = "http://homer.ilias.uni-koeln.de/ilias-nic/index.php" | |
$preliminaries_result = array() | |
$preliminaries = true | |
$SQL_FILE = "../setup/sql/ilias3.sql" | |
$dsn = "" | |
$db | |
$setup_password | |
$default_client | |
$safe_mode | |
$safe_mode_exec_dir | |
$auth | |
$access_mode |
Setup GUI class.
class to setup ILIAS first and maintain the ini-settings and the database
Definition at line 35 of file class.ilSetupGUI.php.
ilSetupGUI::changeAccessMode | ( | $a_back | ) |
enable/disable access to a client
string | jump back to this script |
Definition at line 2719 of file class.ilSetupGUI.php.
References ilUtil\redirect(), and ilUtil\sendInfo().
Referenced by cmdClient().
ilSetupGUI::changeDefaultClient | ( | ) |
set defualt client
Definition at line 2741 of file class.ilSetupGUI.php.
References $client, ilSetup\getStatus(), ilUtil\redirect(), and ilUtil\sendInfo().
Referenced by cmdAdmin().
ilSetupGUI::changeMasterPassword | ( | ) |
display change password form and process form input
Definition at line 2554 of file class.ilSetupGUI.php.
References ilSetup\getPassword(), ilUtil\redirect(), ilUtil\sendInfo(), and ilSetup\setPassword().
Referenced by cmdAdmin().
ilSetupGUI::changeMasterSettings | ( | $a_det = false | ) |
display master settings and process form input
Definition at line 1275 of file class.ilSetupGUI.php.
References $_SESSION, ilSetup\checkLogSetup(), determineTools(), ilUtil\redirect(), ilUtil\sendInfo(), and ilSetup\updateMasterSettings().
Referenced by cmdAdmin(), and determineToolsPath().
ilSetupGUI::checkDisplayMode | ( | $a_title = "" | ) |
determine display mode and load according html layout
string | set title for display mode 'setup' |
Definition at line 1761 of file class.ilSetupGUI.php.
References displayError(), and exit.
Referenced by displayClientOverview(), displayContactData(), displayDatabase(), displayDeleteConfirmation(), displayFinishSetup(), displayIni(), displayLanguages(), displayNIC(), and displayTools().
ilSetupGUI::checkPanelMode | ( | ) |
determine display mode and load correct panel
Definition at line 1788 of file class.ilSetupGUI.php.
References displayProcessPanel(), and displayStatusPanel().
Referenced by displayContactData(), displayDatabase(), displayDeleteConfirmation(), displayFinishSetup(), displayIni(), displayLanguages(), and displayNIC().
ilSetupGUI::cmdAdmin | ( | ) |
process valid commands for admins
Definition at line 181 of file class.ilSetupGUI.php.
References changeDefaultClient(), changeMasterPassword(), changeMasterSettings(), ilSetup\checkPreliminaries(), cmdClient(), determineToolsPath(), displayClientList(), displayDeleteConfirmation(), displayIni(), displayPreliminaries(), displayStartup(), ilSetup\newClient(), setDisplayMode(), and toggleClientList().
Referenced by ilSetupGUI().
ilSetupGUI::cmdClient | ( | ) |
process valid commands for all clients
Definition at line 247 of file class.ilSetupGUI.php.
References $_GET, changeAccessMode(), displayClientOverview(), displayContactData(), displayDatabase(), displayError(), displayFinishSetup(), displayIni(), displayLanguages(), displayLogout(), displayNIC(), displayTools(), jumpToFirstUnfinishedSetupStep(), ilUtil\redirect(), reloadControlStructure(), and setDisplayMode().
Referenced by cmdAdmin(), and ilSetupGUI().
ilSetupGUI::cmdInstall | ( | ) |
process valid commands for pre-installation status
Definition at line 154 of file class.ilSetupGUI.php.
References ilSetup\checkPreliminaries(), determineToolsPathInstall(), displayError(), displayMasterSetup(), and displayPreliminaries().
Referenced by ilSetupGUI().
ilSetupGUI::determineTools | ( | $a_tools = "" | ) |
Determine Tools.
Definition at line 1244 of file class.ilSetupGUI.php.
References $dir, $dirs, and $ret.
Referenced by changeMasterSettings(), and displayMasterSetup().
ilSetupGUI::determineToolsPath | ( | ) |
Determine tools paths.
Definition at line 1228 of file class.ilSetupGUI.php.
References changeMasterSettings().
Referenced by cmdAdmin().
ilSetupGUI::determineToolsPathInstall | ( | ) |
Determine tools paths.
Definition at line 1236 of file class.ilSetupGUI.php.
References displayMasterSetup().
Referenced by cmdInstall().
ilSetupGUI::displayClientList | ( | ) |
display client list and process form input
Definition at line 1022 of file class.ilSetupGUI.php.
References $_GET, $_SESSION, $client, $data, ilSetup\getStatus(), ilUtil\sendInfo(), ilUtil\sortArray(), and ilUtil\switchColor().
Referenced by cmdAdmin().
ilSetupGUI::displayClientOverview | ( | ) |
display client overview panel
Definition at line 369 of file class.ilSetupGUI.php.
References checkDisplayMode(), displayStatusPanel(), ILIAS_ABSOLUTE_PATH, and ILIAS_VERSION.
Referenced by cmdClient().
ilSetupGUI::displayContactData | ( | ) |
display contact data form and process form input
Definition at line 2193 of file class.ilSetupGUI.php.
References ilSetup\checkClientContact(), checkDisplayMode(), checkPanelMode(), ilUtil\is_email(), ilUtil\prepareFormOutput(), ilUtil\sendInfo(), and ilUtil\stripSlashes().
Referenced by cmdClient(), and jumpToFirstUnfinishedSetupStep().
ilSetupGUI::displayDatabase | ( | ) |
display database form and process form input
Definition at line 1820 of file class.ilSetupGUI.php.
References $_SESSION, $ilErr, $ilLog, checkDisplayMode(), checkPanelMode(), ilSetup\createDatabase(), ilSetup\getError(), ilSetup\installDatabase(), and ilUtil\sendInfo().
Referenced by cmdClient(), and jumpToFirstUnfinishedSetupStep().
ilSetupGUI::displayDeleteConfirmation | ( | ) |
display delete client confirmation form and process form input
Definition at line 2663 of file class.ilSetupGUI.php.
References ilSetup\$db, $files, ilSetup\$ini, checkDisplayMode(), checkPanelMode(), ilUtil\redirect(), and ilUtil\sendInfo().
Referenced by cmdAdmin().
ilSetupGUI::displayError | ( | $a_message | ) |
display error page
string | error message |
Definition at line 1652 of file class.ilSetupGUI.php.
References $_SESSION, and exit.
Referenced by checkDisplayMode(), cmdClient(), and cmdInstall().
ilSetupGUI::displayFinishSetup | ( | ) |
display finish setup page
Definition at line 2623 of file class.ilSetupGUI.php.
References checkDisplayMode(), checkPanelMode(), and validateSetup().
Referenced by cmdClient(), and jumpToFirstUnfinishedSetupStep().
ilSetupGUI::displayFooter | ( | ) |
page output and set title
Definition at line 584 of file class.ilSetupGUI.php.
References displayNavButtons(), and ilSetup\isAdmin().
Referenced by ilSetupGUI().
ilSetupGUI::displayHeader | ( | ) |
display header with admin links and language flags
Definition at line 494 of file class.ilSetupGUI.php.
References $_GET, ILIAS_VERSION, ilSetup\isAdmin(), ilSetup\isAuthenticated(), and ilSetup\isInstalled().
Referenced by ilSetupGUI().
ilSetupGUI::displayIni | ( | ) |
display setup in step
Definition at line 1474 of file class.ilSetupGUI.php.
References $_SESSION, $client_id, checkDisplayMode(), checkPanelMode(), ilSetup\getError(), ILIAS_ABSOLUTE_PATH, ILIAS_WEB_DIR, ilSetup\newClient(), ilSetup\saveNewClient(), and ilUtil\sendInfo().
Referenced by cmdAdmin(), and cmdClient().
ilSetupGUI::displayLanguages | ( | ) |
display language form and process form input
Definition at line 2061 of file class.ilSetupGUI.php.
References $result, checkDisplayMode(), checkPanelMode(), and ilUtil\sendInfo().
Referenced by cmdClient(), and jumpToFirstUnfinishedSetupStep().
ilSetupGUI::displayLogin | ( | ) |
display login form and process form
Definition at line 973 of file class.ilSetupGUI.php.
References ilSetup\getError(), ilSetup\loginAsAdmin(), ilSetup\loginAsClient(), and ilUtil\redirect().
Referenced by ilSetupGUI().
ilSetupGUI::displayLogout | ( | ) |
display logout page
Definition at line 1669 of file class.ilSetupGUI.php.
Referenced by cmdClient().
ilSetupGUI::displayMasterSetup | ( | $a_det = false | ) |
display master setup form & process form input
Definition at line 748 of file class.ilSetupGUI.php.
References $_SESSION, ilSetup\checkDataDirSetup(), ilSetup\checkLogSetup(), ilSetup\checkPasswordSetup(), determineTools(), ilSetup\isInstalled(), ilUtil\redirect(), ilSetup\saveMasterSetup(), and ilUtil\sendInfo().
Referenced by cmdInstall(), and determineToolsPathInstall().
ilSetupGUI::displayNavButtons | ( | ) |
display navigation buttons
Definition at line 609 of file class.ilSetupGUI.php.
Referenced by displayFooter().
ilSetupGUI::displayNIC | ( | ) |
display nic registration form and process form input
Definition at line 2344 of file class.ilSetupGUI.php.
References checkDisplayMode(), checkPanelMode(), and ilUtil\sendInfo().
Referenced by cmdClient(), and jumpToFirstUnfinishedSetupStep().
ilSetupGUI::displayPreliminaries | ( | ) |
display preliminaries page
Definition at line 668 of file class.ilSetupGUI.php.
References $cmd, ilSetup\$preliminaries, and ilSetup\isInstalled().
Referenced by cmdAdmin(), and cmdInstall().
ilSetupGUI::displayProcessPanel | ( | ) |
display process panel
Definition at line 1686 of file class.ilSetupGUI.php.
References ilSetup\getStatus().
Referenced by checkPanelMode(), and displayStartup().
ilSetupGUI::displayStartup | ( | ) |
display intro page for the first client installation
Definition at line 1805 of file class.ilSetupGUI.php.
References displayProcessPanel().
Referenced by cmdAdmin().
ilSetupGUI::displayStatusPanel | ( | ) |
display status panel
Definition at line 1734 of file class.ilSetupGUI.php.
Referenced by checkPanelMode(), and displayClientOverview().
ilSetupGUI::displayTools | ( | ) |
display tools
Definition at line 2465 of file class.ilSetupGUI.php.
References checkDisplayMode(), DB_FETCHMODE_ASSOC, and ilUtil\sendInfo().
Referenced by cmdClient(), and reloadControlStructure().
ilSetupGUI::ilSetupGUI | ( | ) |
Constructor.
Definition at line 60 of file class.ilSetupGUI.php.
References $_GET, $_SESSION, $client_id, $display_mode, $lng, $tpl, cmdAdmin(), cmdClient(), cmdInstall(), displayFooter(), displayHeader(), displayLogin(), ilSetup\getStatus(), ilSetup\ilSetup(), ilSetup\isAdmin(), ilSetup\isAuthenticated(), ilSetup\isInstalled(), ilSetup\newClient(), and setDisplayMode().
ilSetupGUI::jumpToFirstUnfinishedSetupStep | ( | ) |
if setting up a client was not finished, jump back to the first uncompleted setup step
Definition at line 2808 of file class.ilSetupGUI.php.
References displayContactData(), displayDatabase(), displayFinishSetup(), displayLanguages(), displayNIC(), and ilUtil\sendInfo().
Referenced by cmdClient().
ilSetupGUI::loginClient | ( | ) |
login to a client
Definition at line 963 of file class.ilSetupGUI.php.
References ilUtil\redirect().
ilSetupGUI::reloadControlStructure | ( | ) |
reload control structure
Definition at line 2499 of file class.ilSetupGUI.php.
References $GLOBALS, $ilCtrlStructureReader, ilModuleReader\clearTables(), ilServiceReader\clearTables(), displayTools(), ilModule\getAvailableCoreModules(), ilService\getAvailableCoreServices(), ILIAS_ABSOLUTE_PATH, and ilUtil\sendInfo().
Referenced by cmdClient().
ilSetupGUI::SetButtonNext | ( | $a_cmd, | |
$a_lng = 0 |
|||
) |
set next navigation button
string | command to process on click |
string | button label |
Definition at line 658 of file class.ilSetupGUI.php.
ilSetupGUI::SetButtonPrev | ( | $a_cmd = 0 , |
|
$a_lng = 0 |
|||
) |
set previous navigation button
string | command to process on click |
string | button label |
Definition at line 645 of file class.ilSetupGUI.php.
ilSetupGUI::setDisplayMode | ( | $a_mode | ) |
set display mode to 'view' or 'setup' 'setup' -> show status panel and (prev/next) navigation buttons 'view' -> show overall status and tabs under title bar
string | display mode |
Definition at line 477 of file class.ilSetupGUI.php.
References $_SESSION, and $display_mode.
Referenced by cmdAdmin(), cmdClient(), and ilSetupGUI().
ilSetupGUI::toggleClientList | ( | ) |
enable/disable client list on index page
Definition at line 2849 of file class.ilSetupGUI.php.
References ilUtil\redirect(), and ilUtil\sendInfo().
Referenced by cmdAdmin().
ilSetupGUI::validateSetup | ( | ) |
validatesetup status again and set access mode of the first client to online
Definition at line 2775 of file class.ilSetupGUI.php.
Referenced by displayFinishSetup().
ilSetupGUI::$btn_next_cmd |
Definition at line 46 of file class.ilSetupGUI.php.
ilSetupGUI::$btn_next_lng |
Definition at line 47 of file class.ilSetupGUI.php.
ilSetupGUI::$btn_next_on = false |
Definition at line 45 of file class.ilSetupGUI.php.
ilSetupGUI::$btn_prev_cmd |
Definition at line 42 of file class.ilSetupGUI.php.
ilSetupGUI::$btn_prev_lng |
Definition at line 43 of file class.ilSetupGUI.php.
ilSetupGUI::$btn_prev_on = false |
Definition at line 41 of file class.ilSetupGUI.php.
ilSetupGUI::$cmd |
Definition at line 53 of file class.ilSetupGUI.php.
Referenced by displayPreliminaries().
ilSetupGUI::$display_mode = "view" |
Definition at line 54 of file class.ilSetupGUI.php.
Referenced by ilSetupGUI(), and setDisplayMode().
ilSetupGUI::$lang |
Definition at line 51 of file class.ilSetupGUI.php.
ilSetupGUI::$lng |
Definition at line 38 of file class.ilSetupGUI.php.
Referenced by ilSetupGUI().
ilSetupGUI::$log |
Definition at line 39 of file class.ilSetupGUI.php.
ilSetupGUI::$revision |
Definition at line 49 of file class.ilSetupGUI.php.
ilSetupGUI::$tpl |
Definition at line 37 of file class.ilSetupGUI.php.
Referenced by ilSetupGUI().
ilSetupGUI::$version |
Definition at line 50 of file class.ilSetupGUI.php.