Xataface  2.0alpha2
Xataface Application Framework
 All Data Structures Namespaces Files Functions Variables Groups Pages
Installer.php
Go to the documentation of this file.
1 <?php
2 
4 
5  var $step = 'checkEnvironment';
6 
7  function install($params){
8  $pipeline = array(
9  'checkEnvironment',
10  'installationForm',
11  'installFiles',
12  'installDB',
13  'resultForm'
14  );
15 
16  $res = null;
17  foreach ($pipeline as $method){
18  $res = $this->$method($params, $res);
19  if ( PEAR::isError($res) ) return $res;
20  }
21  return $res;
22 
23  }
24 
25  function checkEnvironment($params){
26  return true;
27 
28  }
29 
30  function installationForm($params, $env){
31  //if ( $this->step != __FUNCTION__ ) return false;
32 
33  if ( isset($_POST['--process-installationForm']) ){
34  $required = array('host','name','user');
35 
36  }
37 
38 
39  df_display(
40  array(
41  'pipeline_vars'=>&$env,
42  'params'=>&$params,
43  'validation_result'=>&$res,
44  'repository_apps'=>array()
45 
46  ),
47  'installationForm.html');
48  return;
49 
50 
51 
52  }
53  function installDB($params){}
54  function installFiles($params){}
55 
56 
57 
58 }
59 
60 
61 
62 ?>