Changeset 13888
- Timestamp:
- 12/14/07 10:28:04 (10 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/midcom/midcom.helper.filesync/exec/export_structure.php
r13817 r13888 5 5 $exporter = midcom_helper_filesync_exporter::create('structure'); 6 6 $exporter->export(); 7 echo "Target: {$exporter->root_dir}\n"; 7 8 ?> trunk/midcom/midcom.helper.filesync/exporter/structure.php
r13818 r13888 21 21 { 22 22 parent::midcom_helper_filesync_exporter(); 23 24 $this->root_dir = midcom_helper_filesync_interface::prepare_dir('structure'); 23 25 } 24 26 … … 76 78 $structure[$structure_name]['root'] = $this->read_node($root_node); 77 79 78 return $structure;80 file_put_contents("{$this->root_dir}{$structure_name}.inc", $this->_draw_array($structure)); 79 81 } 80 82 … … 125 127 function export() 126 128 { 127 echo $this->_draw_array($this->read_structure());129 $this->read_structure(); 128 130 } 129 131 }
