Cml\View\Base::assignByRef PHP Метод

assignByRef() публичный Метод

引用赋值
public assignByRef ( string | array $key, mixed &$val = null )
$key string | array
$val mixed
    public function assignByRef($key, &$val = null)
    {
        if (is_array($key)) {
            foreach ($key as $k => &$v) {
                $this->args[$k] = $v;
            }
        } else {
            $this->args[$key] = $val;
        }
        return $this;
    }