{乱⒎八糟ゃ

{乱⒎八糟ゃ

这家伙有点懒,还没写个性签名!

  • 财富值105
  • 威望值0
  • 总积分125

个人信息

  • 回复了 的回答

    ActiveField有__toString()方法~
    /**

     * PHP magic method that returns the string representation of this object.
     * @return string the string representation of this object.
     */
    public function __toString()
    {
        // __toString cannot throw exception
        // use trigger_error to bypass this limitation
        try {
            return $this->render();
        } catch (\Exception $e) {
            ErrorHandler::convertExceptionToError($e);
            return '';
        }
    }
    
    public function render($content = null)
    {
        if ($content === null) {
            if (!isset($this->parts['{input}'])) {
                $this->textInput();
            }
            if (!isset($this->parts['{label}'])) {
                $this->label();
            }
            if (!isset($this->parts['{error}'])) {
                $this->error();
            }
            if (!isset($this->parts['{hint}'])) {
                $this->hint(null);
            }
            $content = strtr($this->template, $this->parts);
        } elseif (!is_string($content)) {
            $content = call_user_func($content, $this);
        }
    
        return $this->begin() . "\n" . $content . "\n" . $this->end();
    }
    

    可能我搜索的时候没留意大小写 -_-||

  • 2019-04-30 已签到
    连续签到3天,获得了15个金钱
  • 2019-04-29 已签到
    连续签到2天,获得了10个金钱
  • 2019-04-28 已签到
    连续签到1天,获得了5个金钱
助理 等级规则
125/200
资料完整度
30/100
用户活跃度
0/100

Ta的关注

1

Ta的粉丝

0

Ta的访客

0