Changeset 623 for branches/1.3/Decompiler.class.php
- Timestamp:
- 07/05/2009 10:41:16 AM (4 years ago)
- Location:
- branches/1.3
- Files:
-
- 2 modified
-
. (modified) (1 prop)
-
Decompiler.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/1.3
-
branches/1.3/Decompiler.class.php
r394 r623 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 (' . '';

