Zikula: A Flexible Open Source Content Management System
home | forum | international support | contact us

Docs For Class ThemeUtil

Class: ThemeUtil

Source Location: /pnobjlib/ThemeUtil.class.php

Class Overview


ThemeUtil

Methods


Inherited Variables

Inherited Methods


Class Details

[line 43] ThemeUtil



[ Top ]

Class Methods


method getAllThemes [line 165]

array getAllThemes( [filter $filter = PNTHEME_FILTER_ALL], [ $state = PNTHEME_STATE_ACTIVE], [ $type = PNTHEME_TYPE_ALL])

getAllThemes

list all available themes

possible values of filter are PNTHEME_FILTER_ALL - get all themes (default) PNTHEME_FILTER_USER - get user themes PNTHEME_FILTER_SYSTEM - get system themes PNTHEME_FILTER_ADMIN - get admin themes




Tags:

return:  of available themes


Parameters:

filter   $filter   - filter list of returned themes by type
   $state  
   $type  

[ Top ]

method getIDFromName [line 249]

void getIDFromName( $theme)





Parameters:

   $theme  

[ Top ]

method getInfo [line 300]

array getInfo( string $themeid)

getInfo

Returns information about a theme.




Tags:

return:  the theme information
author:  Mark West


Parameters:

string   $themeid   Id of the theme

[ Top ]

method getModuleStylesheet [line 348]

string getModuleStylesheet( [string $modname = ''], [string $stylesheet = ''])

get the modules stylesheet from several possible sources



Tags:

return:  path of the stylesheet file, relative to PN root folder
access:  public


Parameters:

string   $modname   the modules name (optional, defaults to top level module)
string   $stylesheet   the stylesheet file (optional)

[ Top ]

method getVar [line 110]

mixed getVar( [ $name = null], [ $default = null])

return a theme variable



Tags:

return:  theme variable value


Parameters:

   $name  
   $default  

[ Top ]

method load [line 52]

bool load( $theme)

Load a theme

include theme.php for the requested theme




Tags:

return:  true if successful, false otherwiese


Parameters:

   $theme  

[ Top ]

method loadLanguage [line 213]

void loadLanguage( [ $script = 'global'], [ $theme = null])





Parameters:

   $script  
   $theme  

[ Top ]

Packages:

Files:

Classes: