Class: HTML_CSS
Source Location: /HTML_CSS-1.5.4/CSS.php
HTML_Common
|
--HTML_CSS
Base class for CSS definitions
Author(s):
Version:
Copyright:
- 2003-2009 Klaus Guenther, Laurent Laville
|
|
Inherited Variables
|
Inherited Methods
|
Class Details
Method Detail
HTML_CSS (Constructor) [line 277]
HTML_CSS HTML_CSS(
[array
$attributes = array()], [array
$errorPrefs = array()])
|
|
Class constructor Class constructors : Zend Engine 1 uses HTML_CSS, while Zend Engine 2 uses __construct
Parameters:
__construct (Constructor) [line 306]
HTML_CSS __construct(
[array
$attributes = array()], [array
$errorPrefs = array()])
|
|
Class constructor Class constructors : Zend Engine 1 uses HTML_CSS, while Zend Engine 2 uses __construct
Parameters:
addGroupSelector [line 1271]
void|PEAR_Error addGroupSelector(
mixed
$group, string
$selectors)
|
|
Add a selector to a CSS definition group. Add a selector to a CSS definition group
Parameters:
apiVersion [line 344]
Return the current API version Since 1.0.0 a string is returned rather than a float (for previous versions).
collapseInternalSpaces [line 614]
string collapseInternalSpaces(
string
$subject)
|
|
Strips excess spaces in string.
Parameters:
createAtRule [line 711]
void|PEAR_Error createAtRule(
string
$atKeyword, [string
$arguments = ''], [bool
$duplicates = null])
|
|
Create a new simple declarative At-Rule Create a simple at-rule without declaration style blocks. That include @charset, @import and @namespace
Parameters:
createGroup [line 1014]
mixed|PEAR_Error createGroup(
string
$selectors, [mixed
$group = null])
|
|
Create a new CSS definition group Create a new CSS definition group. Return an integer identifying the group.
Parameters:
display [line 2593]
Output CSS Code. Send the stylesheet content to standard output, handling cacheControl and contentDisposition headers
getAtRulesList [line 688]
Return list of supported At-Rules Return the list of At-Rules supported by API 1.5.0 of HTML_CSS
getAtRuleStyle [line 941]
void|PEAR_Error getAtRuleStyle(
string
$atKeyword, string
$arguments, string
$selectors, string
$property)
|
|
Get style value of an existing At-Rule Retrieve arguments or style value of an existing At-Rule. See HTML_CSS::getAtRulesList() for a full list of supported At-Rules.
Parameters:
getCache [line 1731]
Returns the cache option value
getCharset [line 1840]
Return the charset encoding string By default, HTML_CSS uses iso-8859-1 encoding.
getContentDisposition [line 1797]
mixed getContentDisposition(
)
|
|
Return the Content-Disposition header Get value of Content-Disposition header (inline filename) used to display results
getGroupStyle [line 1204]
mixed|PEAR_Error getGroupStyle(
mixed
$group, string
$property)
|
|
Return CSS definition for a CSS group Get the CSS definition for group created by setGroupStyle()
Parameters:
getOptions [line 399]
Return all options for the class Return all configuration options at once
getStyle [line 1464]
mixed|PEAR_Error getStyle(
string
$element, string
$property)
|
|
Return the value of a CSS property Get the value of a property to an identifed simple CSS element
Parameters:
grepStyle [line 1546]
array|PEAR_Error grepStyle(
string
$elmPattern, [string
$proPattern = null])
|
|
Retrieve styles corresponding to an element filter Return array entries of styles that match patterns (Perl compatible)
Parameters:
isError [line 2750]
Determine whether there is an error Determine whether last action raised an error or not
parseData [line 2163]
void|PEAR_Error parseData(
array
$styles, [bool
$duplicates = null])
|
|
Parse multiple data sources Parse data sources, file(s) or string(s), that contains CSS information
Parameters:
parseFile [line 2114]
void|PEAR_Error parseFile(
string
$filename, [bool
$duplicates = null])
|
|
Parse file content Parse a file that contains CSS information
Parameters:
parseSelectors [line 506]
mixed|PEAR_Error parseSelectors(
string
$selectors, [int
$outputMode = 0])
|
|
Parse 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 1860]
void|PEAR_Error parseString(
string
$str, [bool
$duplicates = null])
|
|
Parse a string Parse a string that contains CSS information
Parameters:
raiseError [line 2733]
object PEAR_Error raiseError(
)
|
|
A basic wrapper around the default PEAR_Error object This method is a wrapper that returns an instance of the configured error class with this object's default error handling applied.
removeGroupSelector [line 1323]
void|PEAR_Error removeGroupSelector(
mixed
$group, string
$selectors)
|
|
Remove a selector from a group Definitively remove a selector from a CSS group
Parameters:
setAtRuleStyle [line 832]
void|PEAR_Error setAtRuleStyle(
string
$atKeyword, string
$arguments, string
$selectors, string
$property, string
$value, [bool
$duplicates = null])
|
|
Define a conditional/informative At-Rule Set arguments and declaration style block for at-rules that follow : "@media, @page, @font-face"
Parameters:
setCache [line 1709]
void|PEAR_Error setCache(
[bool
$cache = true])
|
|
Set cache flag Define if the document should be cached by the browser. Default to false.
Parameters:
setCharset [line 1816]
void|PEAR_Error setCharset(
[string
$type = 'iso-8859-1'])
|
|
Set charset value Define the charset for the file. Default to ISO-8859-1 because of CSS1 compatability issue for older browsers.
Parameters:
setContentDisposition [line 1754]
void|PEAR_Error setContentDisposition(
[bool
$enable = true], [string
$filename = ''])
|
|
Set Content-Disposition header Define the Content-Disposition header to supply a recommended filename and force the browser to display the save dialog. Default to basename($_SERVER['PHP_SELF']).'.css'
Parameters:
setGroupStyle [line 1118]
void|int|PEAR_Error setGroupStyle(
mixed
$group, string
$property, string
$value, [bool
$duplicates = null])
|
|
Set or add a CSS definition for a CSS group Define the new value of a property for a CSS group. The group should exist. If not, use HTML_CSS::createGroup first
Parameters:
setLineEnd [line 432]
void setLineEnd(
string
$style)
|
|
Set lineend value Set the line end style to Windows, Mac, Unix or a custom string
Parameters:
setOutputGroupsFirst [line 477]
void|PEAR_Error setOutputGroupsFirst(
bool
$value)
|
|
Set groupsfirst flag Determine whether groups are output before elements or not
Parameters:
setSameStyle [line 1630]
void|PEAR_Error setSameStyle(
string
$new, string
$old)
|
|
Apply same styles on two selectors Set or change the properties of new selectors to the values of an existing selector
Parameters:
setSingleLineOutput [line 450]
void|PEAR_Error setSingleLineOutput(
bool
$value)
|
|
Set oneline flag Determine whether definitions are output on a single line or multi lines
Parameters:
setStyle [line 1385]
void|PEAR_Error setStyle(
string
$element, string
$property, string
$value, [bool
$duplicates = null])
|
|
Set or add a CSS definition Add or change a single value for an element property
Parameters:
setTab [line 415]
void setTab(
string
$string)
|
|
Set tab value Sets the string used to indent HTML
Parameters:
setXhtmlCompliance [line 665]
void|PEAR_Error setXhtmlCompliance(
bool
$value)
|
|
Set xhtml flag Active or not the XHTML mode compliant
Parameters:
sortAtRules [line 627]
sort and move simple declarative At-Rules to the top
toArray [line 2317]
Return the CSS contents in an array Return the full contents of CSS data sources (parsed) in an array
toFile [line 2415]
void|PEAR_Error toFile(
string
$filename)
|
|
Generate CSS and stores it in a file Generate current parsed CSS data sources and write result in a user file
Parameters:
toInline [line 2347]
string|PEAR_Error toInline(
string
$element)
|
|
Return a string-properties for style attribute of an HTML element Generate and return the CSS properties of an element or class as a string for inline use.
Parameters:
toString [line 2451]
Return current CSS parsed data as a string Generate current parsed CSS data sources and return result as a string
unsetAtRule [line 779]
void|PEAR_Error unsetAtRule(
string
$atKeyword)
|
|
Remove an existing At-Rule Remove an existing and supported at-rule. See HTML_CSS::getAtRulesList() for a full list of supported At-Rules.
Parameters:
unsetGroup [line 1063]
void|PEAR_Error unsetGroup(
mixed
$group)
|
|
Remove a CSS definition group Remove a CSS definition group. Use the same identifier as for group creation.
Parameters:
validate [line 2222]
boolean|PEAR_Error validate(
array
$styles, array
&$messages)
|
|
Validate a CSS data source Execute the W3C CSS validator service on each data source (filename or string) given by parameter $styles.
Parameters:
__get [line 380]
mixed __get(
string
$option)
|
|
Get option for the class Return current value of an individual option. If option does not exist, returns value is NULL.
Parameters:
__set [line 361]
void __set(
string
$option, string
$val)
|
|
Set option for the class Set an individual option value. Option must exist.
Parameters:
Documentation generated on Mon, 11 Mar 2019 15:32:07 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|
|