InstallerController

Extends\CController

Installer

package

LimeSurvey

copyright

2019

access

public

Methods

check requirements

_check_requirements( &$aData): boolean

Arguments

$aData

Response

boolean

requirements met

Installer::_checkInstallation()

_checkInstallation(): void

Based on existance of 'sample_installer_file.txt' file, check if installation should proceed further or not.

Executes an SQL file

_executeSQLFile(string $sFileName,string $sDatabasePrefix)

Arguments

$sFileName

string

$sDatabasePrefix

string

Use with \Yii::app()->setComponent() to set connection at runtime.

_getDatabaseConfigArray(): array

Response

array

Create a random ASCII string

_getRandomString( $iTotalChar = 64): string

Arguments

$iTotalChar

Response

string

Load and set session vars

_sessioncontrol(): void
access

protected

Function to write given database settings in APPPATH.'config/config.php'

_writeConfigFile()

check image HTML template

check_HTML_image(boolean $result): string

Arguments

$result

boolean

Response

string

Span with check if $result is true; otherwise a span with warning

Contains a number of extensions that can be expected to be installed by default, but maybe not on BSD systems etc.

checkDefaultExtensions(): void

Check them silently and die if they are missing.

check if directory exists and is writeable, returns via parameters by reference

checkDirectoryWriteable(string $directory,string &$data,string $base,string $keyError, $bRecursive = false): boolean

Arguments

$directory

string

to check

$data

string

to manipulate

$base

string

key for data manipulation

$keyError

string

key for error data

$bRecursive

Response

boolean

result of check (that it is writeable which implies existance)

check if file exists and is writeable, returns via parameters by reference

checkFileWriteable(string $file,string &$data,string $base,string $keyError): boolean

Arguments

$file

string

to check

$data

string

to manipulate

$base

string

key for data manipulation

$keyError

string

key for error data

Response

boolean

result of check (that it is writeable which implies existance)

check if file or directory exists and is writeable, returns via parameters by reference

checkPathWriteable(string $path,integer $type,string &$aData,string $base,string $keyError, $bRecursive = false): boolean

Arguments

$path

string

file or directory to check

$type

integer

0:undefined (invalid), 1:file, 2:directory

$aData

string

$base

string

key for data manipulation

$keyError

string

key for error data

$bRecursive

Response

boolean

result of check (that it is writeable which implies existance)

check for a specific PHPFunction, return HTML image

checkPHPFunction(string $sFunctionName,string &$sImage): boolean

Arguments

$sFunctionName

string

$sImage

string

return

Response

boolean

result

clear the session from installation information

clearSession()

getModelFromSession

getModelFromSession( $scenario = null): \InstallerConfigForm

Arguments

$scenario

Response

\InstallerConfigForm

is_writable_recursive

is_writable_recursive(string $sDirectory)

Arguments

$sDirectory

string

Loads a helper

loadHelper(string $helper): void
access

public

Arguments

$helper

string

Loads a library

loadLibrary( $library): void
access

public

Arguments

$library

Checks for action specific authorization and then executes an action

run(string $action = 'index'): void
access

public

Arguments

$action

string

Installer::stepCreateDb() Create database.

stepCreateDb(): void
Throws
\Exception

Configure database screen

stepDatabaseConfiguration()

Display license

stepLicense()

Optional settings screen

stepOptionalConfiguration()

Installer::stepPopulateDb() Function to populate the database.

stepPopulateDb(): void

check a few writing permissions and optional settings

stepPreInstallationCheck()

display the license file as IIS for example does not display it via the server.

stepViewLicense()

welcome and language selection install step

stepWelcome()

Properties

connection

connection :\CDbConnection
var

Type(s)

\CDbConnection

clang

lang :

Type(s)

layout

layout :

Type(s)