Changeset 522 for trunk/Decompiler.class.php
- Timestamp:
- 2008-02-17T17:49:46+01:00 (5 years ago)
- File:
-
- 1 edited
-
trunk/Decompiler.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Decompiler.class.php
r393 r522 29 29 if (is_array($src)) { 30 30 die_error('array str'); 31 $src = new Decompiler_Array($src );32 return $src->__toString( $indent);31 $src = new Decompiler_Array($src, false, $indent); 32 return $src->__toString(); 33 33 } 34 34 … … 165 165 } 166 166 167 function __toString( $indent)168 { 169 return $this->obj->__toString( $indent);167 function __toString() 168 { 169 return $this->obj->__toString(); 170 170 } 171 171 } … … 258 258 { 259 259 var $needExport = false; 260 261 function Decompiler_Array($value = array(), $needexport = false) 260 var $indent = ''; 261 262 function Decompiler_Array($value = array(), $needexport = false, $indent = '') 262 263 { 263 264 $this->value = $value; 264 265 $this->needExport = $needexport; 265 } 266 267 function __toString($indent) 266 $this->indent = $indent; 267 } 268 269 function __toString() 268 270 { 269 271 $exp = "array("; 270 $indent .=INDENT;272 $indent = $this->indent . INDENT; 271 273 $assoclen = 0; 272 274 $multiline = 0; … … 335 337 var $iskey; 336 338 337 function __toString( $indent)339 function __toString() 338 340 { 339 341 return 'foreach (' . '';
Note: See TracChangeset
for help on using the changeset viewer.

