[ Index ]

PHP Cross Reference of DokuWiki

title

Body

[close]

/vendor/splitbrain/lesserphp/src/Functions/ -> Type.php (summary)

(no description)

File Size: 144 lines (4 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Type:: (11 methods):
  getFunctions()
  isnumber()
  isstring()
  iscolor()
  iskeyword()
  isurl()
  ispixel()
  isem()
  isrem()
  ispercentage()
  isunit()


Class: Type  - X-Ref

Implements the type functions for LESS

getFunctions()   X-Ref
No description

isnumber(array $value)   X-Ref
Returns true if a value is a number, false otherwise

link: https://lesscss.org/functions/#type-functions-isnumber

isstring(array $value)   X-Ref
Returns true if a value is a string, false otherwise

link: https://lesscss.org/functions/#type-functions-isstring

iscolor(array $value)   X-Ref
Returns true if a value is a color, false otherwise

link: https://lesscss.org/functions/#type-functions-iscolor

iskeyword(array $value)   X-Ref
Returns true if a value is a keyword, false otherwise

link: https://lesscss.org/functions/#type-functions-iskeyword

isurl(array $value)   X-Ref
Returns true if a value is a url, false otherwise

link: https://lesscss.org/functions/#type-functions-isurl

ispixel(array $value)   X-Ref
Returns true if a value is a number in pixels, false otherwise

link: https://lesscss.org/functions/#type-functions-ispixel

isem(array $value)   X-Ref
Returns true if a value is an em value, false otherwise

link: https://lesscss.org/functions/#type-functions-isem

isrem(array $value)   X-Ref
Returns true if a value is an rem value, false otherwise

This method does not exist in the official less.js implementation

ispercentage(array $value)   X-Ref
Returns true if a value is a percentage, false otherwise

link: https://lesscss.org/functions/#type-functions-ispercentage

isunit(array $args)   X-Ref
Returns true if a value is a number with a given unit, false otherwise

link: https://lesscss.org/functions/#type-functions-isunit