HesaSys
[ class tree: HesaSys ] [ index: HesaSys ] [ all elements ]

Class: Installer

Source Location: /class.install.php

Class Overview


a comfortable installer for HesaSys


Variables

Methods



Class Details

[line 40]
a comfortable installer for HesaSys



[ Top ]


Class Variables

$cfg = array()

[line 70]

Deprecated?


Type:   array


[ Top ]

$config =

[line 90]

configTool object


Type:   object


[ Top ]

$mysql =

[line 45]

Mysqlobject


Type:   object


[ Top ]

$sql = array()

[line 51]

Deprecated?


Type:   array


[ Top ]

$step =  0

[line 57]

The actual step


Type:   int


[ Top ]

$steps = array()

[line 84]

available steps


Type:   array


[ Top ]

$type =

[line 64]

selected type


Type:   string


[ Top ]

$types = array()

[line 77]

available types - upgrading from a previous version would be a type


Type:   array


[ Top ]



Class Methods


constructor Installer [line 95]

Installer Installer( )

adds types and steps to the types



[ Top ]

method addCfg [line 160]

bool addCfg( string $name, string $value)

alias for the ConfigTool::addCfg



Tags:

return:  always true
uses:  ConfigTool::addCfg()


Parameters:

string   $name   Name of the option
string   $value   Value of the option

[ Top ]

method addStep [line 143]

void addStep( string $type, int $step, callback $callback)

adds a step to a type



Parameters:

string   $type   Type-ID
int   $step   Step-ID
callback   $callback   Callback for this step

[ Top ]

method addType [line 130]

void addType( string $type, string $desc)

adds an available type



Parameters:

string   $type   Type-ID
string   $desc   Description

[ Top ]

method check [line 119]

void check( )

checks if the specified type exists

if not -> die




[ Top ]

method generateConfig [line 170]

string generateConfig( )

alias for the ConfigTool::generateConfig



Tags:

return:  The configuration
uses:  ConfigTool::generateConfig()


[ Top ]

method getStep [line 217]

int getStep( )

gets the actual step



[ Top ]

method install_2 [line 226]

void install_2( )

Install routine#2

Basic configuration of MySQL




[ Top ]

method install_3 [line 265]

void install_3( )

Install routine#3

  • Config-file writable?
  • Mysql-connection ok?
  • If yes, let the user specify the defaultlang, absoluteuri etc.




[ Top ]

method install_4 [line 347]

void install_4( )

Install routine#4

generates the Config and runs the sql-commands




[ Top ]

method run [line 190]

void run( )

runs a step

if no type has specified yet, print the selection of available types, else call a method




[ Top ]

method update_1x_2 [line 460]

void update_1x_2( )

Update from 1.x#2

Mysql-connections




[ Top ]

method update_1x_3 [line 499]

void update_1x_3( )

Update from 1.x#3

  • Config-file writable?
  • Mysql-connection ok?
  • If yes, let the user specify the defaultlang, absoluteuri etc.




[ Top ]

method update_1x_4 [line 574]

void update_1x_4( )

Update from 1.x#4

  • config generation
  • sql updates




[ Top ]

method update_20_2 [line 694]

void update_20_2( )

Update from 2.x#2

Check if the old configfile was renamed




[ Top ]

method update_20_3 [line 714]

void update_20_3( )

Update from 2.x#3

  • Configfile was renamed?
  • Mysql-connection still ok?




[ Top ]

method update_20_4 [line 759]

void update_20_4( )

Update from 2.x#4

  • Update&Write new config
  • Update DB




[ Top ]

method writeConfig [line 180]

bool writeConfig( )

alias for the ConfigTool::writeConfig



Tags:

return:  always true
uses:  ConfigTool::writeConfig()


[ Top ]


Documentation generated on Sat, 20 May 2006 15:56:02 +0200 by phpDocumentor 1.3.0RC6