public function getScripts()
    {
        $scripts = array();
        switch ($this->_jsEngine) {
            case self::ENGINE_JQUERY:
                $scripts[] = $this->_confs['jQuery']['path'] . $this->_confs['jQuery']['name'];
                break;

            case self::ENGINE_MOOTOOLS:
                $scripts[] = $this->_confs['mootools']['path'] . $this->_confs['mootools']['name'];
                if ($this->_chartType === self::HIGHCHART) {
                    $scripts[] = $this->_confs['highchartsMootoolsAdapter']['path'] . $this->_confs['highchartsMootoolsAdapter']['name'];
                } else {
                    $scripts[] = $this->_confs['highstockMootoolsAdapter']['path'] . $this->_confs['highstockMootoolsAdapter']['name'];
                }
                break;

            case self::ENGINE_PROTOTYPE:
                $scripts[] = $this->_confs['prototype']['path'] . $this->_confs['prototype']['name'];
                if ($this->_chartType === self::HIGHCHART) {
                    $scripts[] = $this->_confs['highchartsPrototypeAdapter']['path'] . $this->_confs['highchartsPrototypeAdapter']['name'];
                } else {
                    $scripts[] = $this->_confs['highstockPrototypeAdapter']['path'] . $this->_confs['highstockPrototypeAdapter']['name'];
                }
                break;

        }

        switch ($this->_chartType) {
            case self::HIGHCHART:
                $scripts[] = $this->_confs['highcharts']['path'] . $this->_confs['highcharts']['name'];
                break;

            case self::HIGHSTOCK:
                $scripts[] = $this->_confs['highstock']['path'] . $this->_confs['highstock']['name'];
                break;

            case self::HIGHMAPS:
                $scripts[] = $this->_confs['highmaps']['path'] . $this->_confs['highmaps']['name'];
                break;
        }

        //Include scripts with keys given to be included via includeExtraScripts
        if (!empty($this->_extraScripts)) {
            foreach ($this->_extraScripts as $key) {
                $scripts[] = $this->_confs['extra'][$key]['path'] . $this->_confs['extra'][$key]['name'];
            }
        }

        return $scripts;
    }
public function getScripts()
    {
        $scripts = array();
        switch ($this->_jsEngine) {
            case self::ENGINE_JQUERY:
                $scripts[] = $this->_confs['jQuery']['path'] . $this->_confs['jQuery']['name'];
                break;

            case self::ENGINE_MOOTOOLS:
                $scripts[] = $this->_confs['mootools']['path'] . $this->_confs['mootools']['name'];
                if ($this->_chartType === self::HIGHCHART) {
                    $scripts[] = $this->_confs['highchartsMootoolsAdapter']['path'] . $this->_confs['highchartsMootoolsAdapter']['name'];
                } else {
                    $scripts[] = $this->_confs['highstockMootoolsAdapter']['path'] . $this->_confs['highstockMootoolsAdapter']['name'];
                }
                break;

            case self::ENGINE_PROTOTYPE:
                $scripts[] = $this->_confs['prototype']['path'] . $this->_confs['prototype']['name'];
                if ($this->_chartType === self::HIGHCHART) {
                    $scripts[] = $this->_confs['highchartsPrototypeAdapter']['path'] . $this->_confs['highchartsPrototypeAdapter']['name'];
                } else {
                    $scripts[] = $this->_confs['highstockPrototypeAdapter']['path'] . $this->_confs['highstockPrototypeAdapter']['name'];
                }
                break;

        }

        switch ($this->_chartType) {
            case self::HIGHCHART:
                $scripts[] = $this->_confs['highcharts']['path'] . $this->_confs['highcharts']['name'];
                break;

            case self::HIGHSTOCK:
                $scripts[] = $this->_confs['highstock']['path'] . $this->_confs['highstock']['name'];
                break;

            case self::HIGHMAPS:
                $scripts[] = $this->_confs['highmaps']['path'] . $this->_confs['highmaps']['name'];
                break;
        }

        //Include scripts with keys given to be included via includeExtraScripts
        if (!empty($this->_extraScripts)) {
            foreach ($this->_extraScripts as $key) {
                $scripts[] = $this->_confs['extra'][$key]['path'] . $this->_confs['extra'][$key]['name'];
            }
        }

        return $scripts;
    }
public function getScripts ( ) { $ scripts = array ( ) ; switch ( $ this -> _jsEngine ) { case self :: ENGINE_JQUERY : $ scripts [ ] = $ this -> _confs [ 'jQuery' ] [ 'path' ] . $ this -> _confs [ 'jQuery' ] [ 'name' ] ; break ; case self :: ENGINE_MOOTOOLS : $ scripts [ ] = $ this -> _confs [ 'mootools' ] [ 'path' ] . $ this -> _confs [ 'mootools' ] [ 'name' ] ; if ( $ this -> _chartType === self :: HIGHCHART ) { $ scripts [ ] = $ this -> _confs [ 'highchartsMootoolsAdapter' ] [ 'path' ] . $ this -> _confs [ 'highchartsMootoolsAdapter' ] [ 'name' ] ; } else { $ scripts [ ] = $ this -> _confs [ 'highstockMootoolsAdapter' ] [ 'path' ] . $ this -> _confs [ 'highstockMootoolsAdapter' ] [ 'name' ] ; } break ; case self :: ENGINE_PROTOTYPE : $ scripts [ ] = $ this -> _confs [ 'prototype' ] [ 'path' ] . $ this -> _confs [ 'prototype' ] [ 'name' ] ; if ( $ this -> _chartType === self :: HIGHCHART ) { $ scripts [ ] = $ this -> _confs [ 'highchartsPrototypeAdapter' ] [ 'path' ] . $ this -> _confs [ 'highchartsPrototypeAdapter' ] [ 'name' ] ; } else { $ scripts [ ] = $ this -> _confs [ 'highstockPrototypeAdapter' ] [ 'path' ] . $ this -> _confs [ 'highstockPrototypeAdapter' ] [ 'name' ] ; } break ; } switch ( $ this -> _chartType ) { case self :: HIGHCHART : $ scripts [ ] = $ this -> _confs [ 'highcharts' ] [ 'path' ] . $ this -> _confs [ 'highcharts' ] [ 'name' ] ; break ; case self :: HIGHSTOCK : $ scripts [ ] = $ this -> _confs [ 'highstock' ] [ 'path' ] . $ this -> _confs [ 'highstock' ] [ 'name' ] ; break ; case self :: HIGHMAPS : $ scripts [ ] = $ this -> _confs [ 'highmaps' ] [ 'path' ] . $ this -> _confs [ 'highmaps' ] [ 'name' ] ; break ; } //Include scripts with keys given to be included via includeExtraScripts if ( ! empty ( $ this -> _extraScripts ) ) { foreach ( $ this -> _extraScripts as $ key ) { $ scripts [ ] = $ this -> _confs [ 'extra' ] [ $ key ] [ 'path' ] . $ this -> _confs [ 'extra' ] [ $ key ] [ 'name' ] ; } } return $ scripts ; }
Finds the javascript files that need to be included on the page, based
on the chart type and js engine.
Uses the conf.php file to build the files path

@return array The javascript files path
Finds the javascript files that need to be included on the page based on the chart type and js engine . Uses the conf . php file to build the files path