class Update

Class Update

Constants

SQL_DIR

PHP_DIR

INSTRUCTION_DIR

Methods

__construct($usePropel = true)

No description

isLatestVersion($version = null)

No description

process()

No description

bool
backupDb()

Backup current DB to file local/backup/update.sql

bool
restoreDb()

Restores file local/backup/update.sql to current DB

null|string
getBackupFile()

No description

getLogs()

No description

getCurrentVersion()

No description

setCurrentVersion($version)

No description

float
getDataBaseSize()

Returns the database size in Mo

bool
checkBackupIsPossible()

Checks whether it is possible to make a data base backup

getLatestVersion()

No description

getVersions()

No description

array
getUpdatedVersions()

No description

setUpdatedVersions( array $updatedVersions)

No description

string
getPostInstructions( string $format = 'plain')

Return the content of all instructions

hasPostInstructions()

No description

getVersionList()

No description

$this
setMessage( string $message, string $type = 'info')

No description

array
getMessages()

No description

string
trans( string $string)

No description

$this
setTranslator( Translator $translator)

No description

getWebVersion()

No description

Details

at line 75
__construct($usePropel = true)

Parameters

$usePropel

at line 148
isLatestVersion($version = null)

Parameters

$version

at line 158
process()

at line 230
bool backupDb()

Backup current DB to file local/backup/update.sql

Return Value

bool if it succeeds, false otherwise

Exceptions

Exception

at line 277
bool restoreDb()

Restores file local/backup/update.sql to current DB

Return Value

bool if it succeeds, false otherwise

at line 301
null|string getBackupFile()

Return Value

null|string

at line 306
getLogs()

at line 384
getCurrentVersion()

at line 391
setCurrentVersion($version)

Parameters

$version

at line 412
float getDataBaseSize()

Returns the database size in Mo

Return Value

float

Exceptions

Exception

at line 431
bool checkBackupIsPossible()

Checks whether it is possible to make a data base backup

Return Value

bool

at line 455
getLatestVersion()

at line 460
getVersions()

at line 468
array getUpdatedVersions()

Return Value

array

at line 476
setUpdatedVersions( array $updatedVersions)

Parameters

array $updatedVersions

at line 501
string getPostInstructions( string $format = 'plain')

Return the content of all instructions

Parameters

string $format the format of the export : plain (default) or html

Return Value

string the instructions in plain text or html

at line 527
hasPostInstructions()

at line 532
getVersionList()

at line 555
$this setMessage( string $message, string $type = 'info')

Parameters

string $message
string $type

Return Value

$this

at line 565
array getMessages()

Return Value

array

at line 574
string trans( string $string)

Parameters

string $string

Return Value

string

at line 583
$this setTranslator( Translator $translator)

Parameters

Translator $translator

Return Value

$this

at line 590
getWebVersion()