public function &createGraph()
    {
        $engine = $this->charting_engine;
        if ($this->target_format == "HTML" || $this->target_format == "HTML2PDF") {
            $engine = $this->charting_engine_html;
        }

        if (ReporticoUtility::getRequestItem("target_format", "HTML") == "PDF") {
            $engine = $this->charting_engine;
        }

        // Cannot use two forms of charting in the same
        if (!class_exists("reportico_graph", false)) {
            switch ($engine) {
                case "NVD3":
                    $graph = new ChartNVD3($this, "internal");
                    break;

                case "FLOT":
                    $graph = new ChartFLOT($this, "internal");
                    break;

                case "JPGRAPH":
                    $graph = new ChrtJpgraph($this, "internal");
                    break;

                case "PCHART":
                default:
                    $graph = new ChartPchart($this, "internal");
                    break;
            }
        }

        $this->graphs[] = &$graph;
        return $graph;
    }
public function &createGraph()
    {
        $engine = $this->charting_engine;
        if ($this->target_format == "HTML" || $this->target_format == "HTML2PDF") {
            $engine = $this->charting_engine_html;
        }

        if (ReporticoUtility::getRequestItem("target_format", "HTML") == "PDF") {
            $engine = $this->charting_engine;
        }

        // Cannot use two forms of charting in the same
        if (!class_exists("reportico_graph", false)) {
            switch ($engine) {
                case "NVD3":
                    $graph = new ChartNVD3($this, "internal");
                    break;

                case "FLOT":
                    $graph = new ChartFLOT($this, "internal");
                    break;

                case "JPGRAPH":
                    $graph = new ChrtJpgraph($this, "internal");
                    break;

                case "PCHART":
                default:
                    $graph = new ChartPchart($this, "internal");
                    break;
            }
        }

        $this->graphs[] = &$graph;
        return $graph;
    }
public function & createGraph ( ) { $ engine = $ this -> charting_engine ; if ( $ this -> target_format == "HTML" || $ this -> target_format == "HTML2PDF" ) { $ engine = $ this -> charting_engine_html ; } if ( ReporticoUtility :: getRequestItem ( "target_format" , "HTML" ) == "PDF" ) { $ engine = $ this -> charting_engine ; } // Cannot use two forms of charting in the same if ( ! class_exists ( "reportico_graph" , false ) ) { switch ( $ engine ) { case "NVD3" : $ graph = new ChartNVD3 ( $ this , "internal" ) ; break ; case "FLOT" : $ graph = new ChartFLOT ( $ this , "internal" ) ; break ; case "JPGRAPH" : $ graph = new ChrtJpgraph ( $ this , "internal" ) ; break ; case "PCHART" : default : $ graph = new ChartPchart ( $ this , "internal" ) ; break ; } } $ this -> graphs [ ] = & $ graph ; return $ graph ; }
End Yii functions
End Yii functions