PHP 클래스 Horde_Themes_Css, horde

Copyright 2010-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
저자: Michael Slusarz ([email protected])
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_cacheid string The theme cache ID.
$_cssFiles array A list of additional stylesheet files to add to the output.
$_cssThemeFiles array A list of additional themed stylesheet files to add to the output.

공개 메소드들

메소드 설명
addStylesheet ( string $file, string $url ) Adds an external stylesheet to the output.
addThemeStylesheet ( string $file ) Adds a themed stylesheet to the output.
getBaseStylesheetList ( ) : array Returns the list of base stylesheets, based on the current language and browser settings.
getStylesheetUrls ( array $opts = [] ) : array Generate the stylesheet URLs needed to display the current page.
getStylesheets ( mixed $theme = '', array $opts = [] ) : array Return the list of base stylesheets to display.
loadCssFiles ( array $files ) : string Loads CSS files, cleans up the input, and concatenates to a string.

메소드 상세

addStylesheet() 공개 메소드

Adds an external stylesheet to the output.
public addStylesheet ( string $file, string $url )
$file string The CSS filepath.
$url string The CSS URL.

addThemeStylesheet() 공개 메소드

Adds a themed stylesheet to the output.
public addThemeStylesheet ( string $file )
$file string The stylesheet name.

getBaseStylesheetList() 공개 메소드

Returns the list of base stylesheets, based on the current language and browser settings.
public getBaseStylesheetList ( ) : array
리턴 array A list of base CSS files to load.

getStylesheetUrls() 공개 메소드

Honors configuration choices as to stylesheet caching.
public getStylesheetUrls ( array $opts = [] ) : array
$opts array Additional options:
  - app: (string) The current application.
  - nobase: (boolean) If true, don't load base stylesheets.
  - nocache: (boolean) If true, don't load files from cache.
  - nohorde: (boolean) If true, don't load files from Horde.
  - sub: (string) A subdirectory containing additional CSS files to
         load as an overlay to the base CSS files.
  - subonly: (boolean) If true, only load the files in 'sub', not
             the default theme files.
  - theme: (string) Use this theme instead of the default.
  - themeonly: (boolean) If true, only load the theme files.
리턴 array The list of URLs to display (Horde_Url objects).

getStylesheets() 공개 메소드

Return the list of base stylesheets to display.
public getStylesheets ( mixed $theme = '', array $opts = [] ) : array
$theme mixed The theme to use; specify an empty value to retrieve the theme from user preferences, and false for no theme.
$opts array Additional options:
  - app: (string) The current application.
  - nobase: (boolean) If true, don't load base stylesheets.
  - nohorde: (boolean) If true, don't load files from Horde.
  - sub: (string) A subdirectory containing additional CSS files to
         load as an overlay to the base CSS files.
  - subonly: (boolean) If true, only load the files in 'sub', not
             the default theme files.
  - themeonly: (boolean) If true, only load the theme files.
리턴 array An array of 2-element array arrays containing 2 keys:
  - app: (string) App of the CSS file.
  - fs: (string) Filesystem location of stylesheet.
  - uri: (string) URI of stylesheet.

loadCssFiles() 공개 메소드

Loads CSS files, cleans up the input, and concatenates to a string.
사용 중단: Use Horde_Themes_Css_Compress instead.
public loadCssFiles ( array $files ) : string
$files array List of CSS files as returned from getStylesheets().
리턴 string CSS data.

프로퍼티 상세

$_cacheid 보호되어 있는 프로퍼티

The theme cache ID.
protected string $_cacheid
리턴 string

$_cssFiles 보호되어 있는 프로퍼티

A list of additional stylesheet files to add to the output.
protected array $_cssFiles
리턴 array

$_cssThemeFiles 보호되어 있는 프로퍼티

A list of additional themed stylesheet files to add to the output.
protected array $_cssThemeFiles
리턴 array