public function setTemplate($template, $field = null)
    {
        if ($field === null) {
            $field = $this->last_column;
        }

        /** @type GiTemplate $gi */
        $gi = $this->add('GiTemplate');
        $this->columns[$field]['template'] = $gi->loadTemplateFromString($template);

        return $this;
    }
public function setTemplate($template, $field = null)
    {
        if ($field === null) {
            $field = $this->last_column;
        }

        /** @type GiTemplate $gi */
        $gi = $this->add('GiTemplate');
        $this->columns[$field]['template'] = $gi->loadTemplateFromString($template);

        return $this;
    }
public function setTemplate ( $ template , $ field = null ) { if ( $ field === null ) { $ field = $ this -> last_column ; } /** @type GiTemplate $gi */ $ gi = $ this -> add ( 'GiTemplate' ) ; $ this -> columns [ $ field ] [ 'template' ] = $ gi -> loadTemplateFromString ( $ template ) ; return $ this ; }
This allows you to use Template.

@param string $template template as a string

@return $this
This allows you to use Template .