/** * @param string $path without starting slash * @param string|null $path without starting slash */ protected function addCssFile($path, $srcPathsuffix = null) { MyWebloader::addCssFile($this->buildSrcPath(), $path, $srcPathsuffix); }
/** * adds css files to presenter's controlsCss array * * @param mixed $files */ public static function addCssStyle($files) { if (is_null(self::$presenter)) { throw new Exception('Cannot add css files before control is attached to presenter'); } // called from macros // if (func_num_args() > 1) { if (!is_array($files)) { $files = func_get_args(); } foreach ($files as $v) { if (is_array($v)) { MyWebloader::addCssFile(self::$webloaderSrcPath, $v[0], $v[1]); } else { MyWebloader::addCssFile(self::$webloaderSrcPath, $v); } } }