less: Add '@since 1.22' comments
Change-Id: I673705423cf7618e207c0ee47b01761d6c89ce5f
This commit is contained in:
parent
34ce163fbb
commit
e09c4d952d
2 changed files with 6 additions and 0 deletions
|
|
@ -486,6 +486,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
|
|||
/**
|
||||
* Infer the stylesheet language from a stylesheet file path.
|
||||
*
|
||||
* @since 1.22
|
||||
* @param string $path
|
||||
* @return string: the stylesheet language name
|
||||
*/
|
||||
|
|
@ -703,11 +704,13 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
|
|||
|
||||
/**
|
||||
* Generate a cache key for a LESS file.
|
||||
*
|
||||
* The cache key varies on the file name, the names and values of global
|
||||
* LESS variables, and the value of $wgShowExceptionDetails. Varying on
|
||||
* $wgShowExceptionDetails ensures the CSS comment indicating compilation
|
||||
* failure shows the right level of detail.
|
||||
*
|
||||
* @since 1.22
|
||||
* @param string $fileName File name of root LESS file.
|
||||
* @return string: Cache key
|
||||
*/
|
||||
|
|
@ -728,6 +731,7 @@ class ResourceLoaderFileModule extends ResourceLoaderModule {
|
|||
* that were processed. lessphp compares the cached & current mtimes and
|
||||
* recompiles as necessary.
|
||||
*
|
||||
* @since 1.22
|
||||
* @param string $fileName File path of LESS source
|
||||
* @return string: CSS source
|
||||
*/
|
||||
|
|
|
|||
|
|
@ -458,6 +458,7 @@ abstract class ResourceLoaderModule {
|
|||
}
|
||||
|
||||
/**
|
||||
* @since 1.22
|
||||
* @return lessc
|
||||
*/
|
||||
protected static function lessCompiler() {
|
||||
|
|
@ -480,6 +481,7 @@ abstract class ResourceLoaderModule {
|
|||
/**
|
||||
* Get global LESS variables.
|
||||
*
|
||||
* @since 1.22
|
||||
* @return array: Map of variable names to string CSS values.
|
||||
*/
|
||||
protected static function getLESSVars() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue