public function editor($template, $data = null, array $params = [])
    {
        $resource = 'templates/'.$template.'/editor';
        $params = array_merge([
            'key' => $this->key,
            'workspace' => $this->workspace,
            'signature' => $this->createSignature($resource)
        ], $params);

        if ($data)
        {
            $params['data'] = self::dataToString($data);
        }

        return $this->baseUrl.$resource.'?'.http_build_query($params);
    }
public function editor($template, $data = null, array $params = [])
    {
        $resource = 'templates/'.$template.'/editor';
        $params = array_merge([
            'key' => $this->key,
            'workspace' => $this->workspace,
            'signature' => $this->createSignature($resource)
        ], $params);

        if ($data)
        {
            $params['data'] = self::dataToString($data);
        }

        return $this->baseUrl.$resource.'?'.http_build_query($params);
    }
public function editor ( $ template , $ data = null , array $ params = [ ] ) { $ resource = 'templates/' . $ template . '/editor' ; $ params = array_merge ( [ 'key' => $ this -> key , 'workspace' => $ this -> workspace , 'signature' => $ this -> createSignature ( $ resource ) ] , $ params ) ; if ( $ data ) { $ params [ 'data' ] = self :: dataToString ( $ data ) ; } return $ this -> baseUrl . $ resource . '?' . http_build_query ( $ params ) ; }
Creates editor url

@param integer $template
@param array|\stdClass|string $data
@param array $params

@return string
@throws \ActualReports\PDFGeneratorAPI\Exception
Creates editor url