Xataface 2.0
Xataface Application Framework
Static Public Member Functions | Data Fields
CssMin Class Reference

Static Public Member Functions

static minify ($css, $config=array())
static parse ($css)

Data Fields

const T_DOCUMENT = 1
const T_COMMENT = 2
const T_AT_RULE = 3
const T_AT_MEDIA_START = 4
const T_AT_MEDIA = 5
const T_AT_MEDIA_END = 6
const T_AT_FONT_FACE_START = 7
const T_AT_FONT_FACE = 8
const T_FONT_FACE_DECLARATION = 9
const T_AT_FONT_FACE_END = 10
const T_AT_PAGE_START = 11
const T_AT_PAGE = 12
const T_PAGE_DECLARATION = 13
const T_AT_PAGE_END = 14
const T_RULESET_START = 15
const T_SELECTORS = 16
const T_DECLARATIONS_START = 17
const T_DECLARATIONS = 18
const T_DECLARATION = 19
const T_DECLARATIONS_END = 20
const T_RULESET_END = 21
const T_AT_VARIABLES_START = 100
const T_AT_VARIABLES = 101
const T_VARIABLE_DECLARATION = 102
const T_AT_VARIABLES_END = 103
const T_STRING = 254
const T_STRING_URL = 255

Detailed Description

Definition at line 226 of file CSSTool.php.


Member Function Documentation

static minify ( css,
config = array() 
) [static]

Minifies the Css.

Parameters:
string$css
array$config[optional]
Returns:
string

Definition at line 414 of file CSSTool.php.

static parse ( css) [static]

Parses the Css and returns a array of tokens.

Parameters:
string$css
Returns:
array

Escaped LF in string => remove escape backslash and LF

Start of url string property

End of url string property

Selector

Definition at line 656 of file CSSTool.php.


Field Documentation

const T_AT_FONT_FACE = 8

Definition at line 275 of file CSSTool.php.

const T_AT_FONT_FACE_END = 10

Definition at line 287 of file CSSTool.php.

Definition at line 269 of file CSSTool.php.

const T_AT_MEDIA = 5

Definition at line 257 of file CSSTool.php.

const T_AT_MEDIA_END = 6

Definition at line 263 of file CSSTool.php.

const T_AT_MEDIA_START = 4

Definition at line 251 of file CSSTool.php.

const T_AT_PAGE = 12

Definition at line 299 of file CSSTool.php.

const T_AT_PAGE_END = 14

Definition at line 311 of file CSSTool.php.

const T_AT_PAGE_START = 11

Definition at line 293 of file CSSTool.php.

const T_AT_RULE = 3

Definition at line 245 of file CSSTool.php.

const T_AT_VARIABLES = 101

Definition at line 365 of file CSSTool.php.

const T_AT_VARIABLES_END = 103

Definition at line 377 of file CSSTool.php.

const T_AT_VARIABLES_START = 100

Definition at line 359 of file CSSTool.php.

const T_COMMENT = 2

Definition at line 239 of file CSSTool.php.

const T_DECLARATION = 19

Definition at line 341 of file CSSTool.php.

const T_DECLARATIONS = 18

Definition at line 335 of file CSSTool.php.

const T_DECLARATIONS_END = 20

Definition at line 347 of file CSSTool.php.

Definition at line 329 of file CSSTool.php.

const T_DOCUMENT = 1

Definition at line 233 of file CSSTool.php.

Definition at line 281 of file CSSTool.php.

const T_PAGE_DECLARATION = 13

Definition at line 305 of file CSSTool.php.

const T_RULESET_END = 21

Definition at line 353 of file CSSTool.php.

const T_RULESET_START = 15

Definition at line 317 of file CSSTool.php.

const T_SELECTORS = 16

Definition at line 323 of file CSSTool.php.

const T_STRING = 254

Definition at line 383 of file CSSTool.php.

const T_STRING_URL = 255

Definition at line 389 of file CSSTool.php.

Definition at line 371 of file CSSTool.php.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations