Class acInstallation

Description
Method Summary
boolean breakExecution (string $error_message)
boolean execute (void 0)
boolean executeMultipleQueries (string $sql,  &$total_queries,  &$executed_queries, integer $total_queries, integer $executed_queries)
string getAbsoluteUrl (null 0)
string getDatabaseHost (null 0)
string getDatabaseName (null 0)
string getDatabasePassword (null 0)
string getDatabaseType (null 0)
string getDatabaseUsername (null 0)
Output getOutput (null 0)
string getTablePrefix (null 0)
boolean haveInnoDbSupport (void 0)
null printMessage (string $message, [boolean $is_error = false])
null setAbsoluteUrl (string $value)
null setDatabaseHost (string $value)
null setDatabaseName (string $value)
null setDatabasePassword (string $value)
null setDatabaseType (string $value)
null setDatabaseUsername (string $value)
null setOutput (Output $value)
null setTablePrefix (string $value)
boolean writeConfigFile (array $constants)
Methods
Constructor __construct (line 74)

Constructor

acInstallation __construct (Output $output)
breakExecution (line 192)

Add error message to all messages and break the execution

  • access: public
boolean breakExecution (string $error_message)
  • string $error_message: Reason why we are breaking execution
execute (line 85)

Prepare and process config form

  • access: public
boolean execute (void 0)
  • void 0
executeMultipleQueries (line 242)

Execute multiple queries

This one is really quick and dirty because I want to finish this and catch the bus. Need to be redone ASAP

This function returns true if all queries are executed successfully

  • todo: Make a better implementation
  • access: public
boolean executeMultipleQueries (string $sql,  &$total_queries,  &$executed_queries, integer $total_queries, integer $executed_queries)
  • string $sql
  • integer $total_queries: Total number of queries in SQL
  • integer $executed_queries: Total number of successfully executed queries
  • &$total_queries
  • &$executed_queries
getAbsoluteUrl (line 437)

Get absolute_url

string getAbsoluteUrl (null 0)
  • null 0
getDatabaseHost (line 337)

Get database_host

string getDatabaseHost (null 0)
  • null 0
getDatabaseName (line 397)

Get database_name

string getDatabaseName (null 0)
  • null 0
getDatabasePassword (line 377)

Get database_password

string getDatabasePassword (null 0)
  • null 0
getDatabaseType (line 317)

Get database_type

string getDatabaseType (null 0)
  • null 0
getDatabaseUsername (line 357)

Get database_username

string getDatabaseUsername (null 0)
  • null 0
getOutput (line 283)

Get output

Output getOutput (null 0)
  • null 0
getTablePrefix (line 417)

Get table_prefix

string getTablePrefix (null 0)
  • null 0
haveInnoDbSupport (line 218)

This function will return true if server we are connected on has InnoDB support

boolean haveInnoDbSupport (void 0)
  • void 0
printMessage (line 305)

Print message through output object

null printMessage (string $message, [boolean $is_error = false])
  • string $message
  • boolean $is_error
setAbsoluteUrl (line 447)

Set absolute_url value

null setAbsoluteUrl (string $value)
  • string $value
setDatabaseHost (line 347)

Set database_host value

null setDatabaseHost (string $value)
  • string $value
setDatabaseName (line 407)

Set database_name value

null setDatabaseName (string $value)
  • string $value
setDatabasePassword (line 387)

Set database_password value

null setDatabasePassword (string $value)
  • string $value
setDatabaseType (line 327)

Set database_type value

null setDatabaseType (string $value)
  • string $value
setDatabaseUsername (line 367)

Set database_username value

null setDatabaseUsername (string $value)
  • string $value
setOutput (line 293)

Set output value

null setOutput (Output $value)
setTablePrefix (line 427)

Set table_prefix value

null setTablePrefix (string $value)
  • string $value
writeConfigFile (line 207)

Write $constants in config file

  • access: public
boolean writeConfigFile (array $constants)
  • array $constants

Documentation generated on Wed, 23 Jan 2008 01:57:34 +0000 by phpDocumentor 1.4.0