Changeset 12109
- Timestamp:
- 09/10/07 16:27:24 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midgard/data/midgard_admin_sitewizard_cli.php
r12066 r12109 16 16 $sitewizard = new midgard_admin_sitewizard(); 17 17 $sitewizard->set_verbose(true); 18 18 19 /* 19 20 $sitegroup_creator = $sitewizard->initialize_sitegroup_creation(); 20 21 $sitegroup_creator->set_sitegroup_name("Koe13"); … … 34 35 $host_creator->execute(); 35 36 36 /*37 37 38 print_r($host_creator); 38 39 … … 42 43 //$sitegroup_creator->execute(); 43 44 44 /* 45 45 46 $structure_creator = $sitewizard->initialize_structure_creation('983e66725acd11db845a197adaa843af43af'); 46 47 $structure_creator->read_config('structure_config.inc'); 48 $structure_creator->alter_config(array('blog', 'root', 'name'), 'jee'); 49 50 51 /* 47 52 //$structure_creator->set_creation_root_topic('6d3af3384be911dcb7b0b3bf4b275d0d5d0d'); 48 53 $structure_creator->create_creation_root_topic('6d3af3384be911dcb7b0b3bf4b275d0d5d0d', "test", "Test", "net.nehmer.static", array("koe", "koe", "koe")); trunk/midgard/data/midgard_admin_sitewizard_creator_structure.php
r12066 r12109 99 99 { 100 100 $this->config = $this->get_structure_config_filesystem($path); 101 } 102 103 public function alter_config($key_chain, $value) 104 { 105 if ($this->config != null) 106 { 107 $arr_ref =& $this->config; 108 109 for($i = 0; $i < count($key_chain); $i++) 110 { 111 $arr_ref =& $arr_ref[$key_chain[$i]]; 112 } 113 114 $arr_ref = $value; 115 116 print_r($this->config); 117 } 118 else 119 { 120 throw new midgard_admin_sitewizard_exception('There is no configuration array.'); 121 } 101 122 } 102 123
