Class: HTML_CSS
Source Location: /HTML_CSS-1.4.0/CSS.php
HTML_Common
|
--HTML_CSS
Base class for CSS definitions
Author(s):
Version:
Copyright:
- 2003-2007 Klaus Guenther, Laurent Laville
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
HTML_CSS (Constructor) [line 271]
HTML_CSS HTML_CSS(
[array
$attributes = array()], [array
$errorPrefs = array()])
|
|
Class constructor (ZE1)
Parameters:
__construct (Constructor) [line 297]
HTML_CSS __construct(
[array
$attributes = array()], [array
$errorPrefs = array()])
|
|
Class constructor (ZE2)
Parameters:
addGroupSelector [line 817]
void|PEAR_Error addGroupSelector(
mixed
$group, string
$selectors)
|
|
Adds a selector to a CSS definition group.
Parameters:
apiVersion [line 332]
Returns the current API version Since 1.0.0 a string is returned rather than a float (for previous versions).
collapseInternalSpaces [line 565]
string collapseInternalSpaces(
string
$subject)
|
|
Strips excess spaces in string.
Parameters:
createGroup [line 609]
mixed|PEAR_Error createGroup(
string
$selectors, [mixed
$group = null])
|
|
Creates a new CSS definition group. Returns an integer identifying the group.
Parameters:
display [line 1698]
Outputs the stylesheet to the browser.
getCache [line 1184]
Returns the cache option value
getCharset [line 1277]
Returns the charset encoding string
getContentDisposition [line 1240]
mixed getContentDisposition(
)
|
|
Returns the Content-Disposition header ability (inline filename)
getGroupStyle [line 763]
mixed|PEAR_Error getGroupStyle(
mixed
$group, string
$property)
|
|
Returns a CSS definition for a CSS definition group
Parameters:
getStyle [line 966]
mixed|PEAR_Error getStyle(
string
$element, string
$property)
|
|
Retrieves the value of a CSS property
Parameters:
grepStyle [line 1035]
array|PEAR_Error grepStyle(
string
$elmPattern, [string
$proPattern = null])
|
|
Return array entries of styles that match patterns (Perl compatible)
Parameters:
isError [line 1840]
Determine whether there is an error
parseData [line 1458]
void|PEAR_Error parseData(
array
$styles, [bool
$duplicates = null])
|
|
Parse data sources, file(s) or string(s), that contains CSS information
Parameters:
parseFile [line 1417]
void|PEAR_Error parseFile(
string
$filename, [bool
$duplicates = null])
|
|
Parse a file that contains CSS information
Parameters:
parseSelectors [line 463]
mixed|PEAR_Error parseSelectors(
string
$selectors, [int
$outputMode = 0])
|
|
Parses a string containing selector(s). It processes it and returns an array or string containing modified selectors (depends on XHTML compliance setting; defaults to ensure lowercase element names)
Parameters:
parseString [line 1295]
void|PEAR_Error parseString(
string
$str, [bool
$duplicates = null])
|
|
Parse a textstring that contains css information
Parameters:
raiseError [line 1825]
object PEAR_Error raiseError(
)
|
|
A basic wrapper around the default PEAR_Error object
removeGroupSelector [line 853]
void|PEAR_Error removeGroupSelector(
mixed
$group, string
$selectors)
|
|
Removes a selector from a group.
Parameters:
setCache [line 1164]
void|PEAR_Error setCache(
[bool
$cache = true])
|
|
Defines if the document should be cached by the browser. Defaults to false.
Parameters:
setCharset [line 1257]
void|PEAR_Error setCharset(
[string
$type = 'iso-8859-1'])
|
|
Defines the charset for the file. defaults to ISO-8859-1 because of CSS1 compatability issue for older browsers.
Parameters:
setContentDisposition [line 1204]
void|PEAR_Error setContentDisposition(
[bool
$enable = true], [string
$filename = ''])
|
|
Defines the Content-Disposition filename for the browser output. Defaults to basename($_SERVER['PHP_SELF']).'.css'
Parameters:
setGroupStyle [line 699]
void|int|PEAR_Error setGroupStyle(
mixed
$group, string
$property, string
$value, [bool
$duplicates = null])
|
|
Sets or adds a CSS definition for a CSS definition group
Parameters:
setLineEnd [line 397]
void setLineEnd(
string
$style)
|
|
Sets the line end style to Windows, Mac, Unix or a custom string.
Parameters:
setOutputGroupsFirst [line 436]
void|PEAR_Error setOutputGroupsFirst(
bool
$value)
|
|
Determines whether groups are output before elements or not
Parameters:
setSameStyle [line 1113]
void|PEAR_Error setSameStyle(
string
$new, string
$old)
|
|
Sets or changes the properties of new selectors to the values of an existing selector
Parameters:
setSingleLineOutput [line 413]
void|PEAR_Error setSingleLineOutput(
bool
$value)
|
|
Determines whether definitions are output single line or multiline
Parameters:
setStyle [line 899]
void|PEAR_Error setStyle(
string
$element, string
$property, string
$value, [bool
$duplicates = null])
|
|
Sets or adds a CSS definition
Parameters:
setTab [line 382]
void setTab(
string
$string)
|
|
Sets the string used to indent HTML
Parameters:
setXhtmlCompliance [line 582]
void|PEAR_Error setXhtmlCompliance(
bool
$value)
|
|
Sets XHTML compliance
Parameters:
toArray [line 1498]
Returns the array of CSS properties
toFile [line 1580]
void|PEAR_Error toFile(
string
$filename)
|
|
Generates CSS and stores it in a file.
Parameters:
toInline [line 1522]
string|PEAR_Error toInline(
string
$element)
|
|
Generates and returns the CSS properties of an element or class as a string for inline use.
Parameters:
toString [line 1610]
Generates and returns the complete CSS as a string.
unsetGroup [line 652]
void|PEAR_Error unsetGroup(
mixed
$group)
|
|
Sets or adds a CSS definition for a CSS definition group
Parameters:
__get [line 363]
mixed __get(
string
$option)
|
|
Gets options for the class.
Parameters:
__set [line 347]
void __set(
string
$option, string
$val)
|
|
Sets options for the class.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:12:28 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|