Evercode1\ViewMaker\MakeChart::appendChartVueScript PHP Method

appendChartVueScript() private method

private appendChartVueScript ( )
    private function appendChartVueScript()
    {
        $txt = $this->getContentFromTemplate('ChartScript', $this->tokens);
        $contents = file_get_contents($this->files['Index']);
        $classParts = explode("<!-- Chart Script Placeholder -->", $contents, 2);
        $txt = $classParts[0] . "<!-- Begin Chart Script -->" . "\n\n" . $txt . $classParts[1];
        $handle = fopen($this->files['Index'], "w");
        fwrite($handle, $txt);
        fclose($handle);
        return $this;
    }