2021-09-09 22:13:48 +00:00
|
|
|
<?php
|
|
|
|
|
2022-02-06 22:43:56 +00:00
|
|
|
namespace Vector;
|
|
|
|
|
2021-09-09 22:13:48 +00:00
|
|
|
/**
|
|
|
|
* @ingroup Skins
|
|
|
|
* @package Vector
|
|
|
|
* @internal
|
|
|
|
*/
|
|
|
|
class SkinVectorLegacy extends SkinVector {
|
|
|
|
/**
|
|
|
|
* @inheritDoc
|
|
|
|
*/
|
|
|
|
public function __construct( $options = [] ) {
|
|
|
|
$options += [
|
|
|
|
'template' => self::getTemplateOption(),
|
|
|
|
'scripts' => self::getScriptsOption(),
|
|
|
|
'styles' => self::getStylesOption(),
|
|
|
|
];
|
|
|
|
parent::__construct( $options );
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
|
|
*
|
|
|
|
* @return string
|
|
|
|
*/
|
|
|
|
public static function getTemplateOption() {
|
|
|
|
return 'skin-legacy';
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function getScriptsOption() {
|
|
|
|
return [
|
|
|
|
'skins.vector.legacy.js',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Temporary static function while we deprecate SkinVector class.
|
|
|
|
*
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public static function getStylesOption() {
|
|
|
|
return [
|
|
|
|
'skins.vector.styles.legacy',
|
|
|
|
];
|
|
|
|
}
|
|
|
|
}
|