![]() |
Xataface 2.0
Xataface Application Framework
|
00001 <?php 00002 00003 class Dataface_Installer { 00004 00005 var $step = 'checkEnvironment'; 00006 00007 function install($params){ 00008 $pipeline = array( 00009 'checkEnvironment', 00010 'installationForm', 00011 'installFiles', 00012 'installDB', 00013 'resultForm' 00014 ); 00015 00016 $res = null; 00017 foreach ($pipeline as $method){ 00018 $res = $this->$method($params, $res); 00019 if ( PEAR::isError($res) ) return $res; 00020 } 00021 return $res; 00022 00023 } 00024 00025 function checkEnvironment($params){ 00026 return true; 00027 00028 } 00029 00030 function installationForm($params, $env){ 00031 //if ( $this->step != __FUNCTION__ ) return false; 00032 00033 if ( isset($_POST['--process-installationForm']) ){ 00034 $required = array('host','name','user'); 00035 00036 } 00037 00038 00039 df_display( 00040 array( 00041 'pipeline_vars'=>&$env, 00042 'params'=>&$params, 00043 'validation_result'=>&$res, 00044 'repository_apps'=>array() 00045 00046 ), 00047 'installationForm.html'); 00048 return; 00049 00050 00051 00052 } 00053 function installDB($params){} 00054 function installFiles($params){} 00055 00056 00057 00058 } 00059 00060 00061 00062 ?>