Changeset 623 in svn for branches/1.3/Decompiler.class.php


Ignore:
Timestamp:
2009-07-05T10:41:16+02:00 (6 years ago)
Author:
Xuefer
Message:

merged r514-r539 from trunk

Location:
branches/1.3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3

  • branches/1.3/Decompiler.class.php

    r394 r623  
    2929    if (is_array($src)) {
    3030        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();
    3333    }
    3434
     
    165165    }
    166166
    167     function __toString($indent)
    168     {
    169         return $this->obj->__toString($indent);
     167    function __toString()
     168    {
     169        return $this->obj->__toString();
    170170    }
    171171}
     
    258258{
    259259    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 = '')
    262263    {
    263264        $this->value = $value;
    264265        $this->needExport = $needexport;
    265     }
    266 
    267     function __toString($indent)
     266        $this->indent = $indent;
     267    }
     268
     269    function __toString()
    268270    {
    269271        $exp = "array(";
    270         $indent .= INDENT;
     272        $indent = $this->indent . INDENT;
    271273        $assoclen = 0;
    272274        $multiline = 0;
     
    335337    var $iskey;
    336338
    337     function __toString($indent)
     339    function __toString()
    338340    {
    339341        return 'foreach (' . '';
Note: See TracChangeset for help on using the changeset viewer.