Class PMA_Theme

Description

handles theme

  • todo: add the possibility to make a theme depends on another theme and by default on orignal
  • todo: add an optional global css file - which will be used for both frames
  • todo: make all components optional - taking missing compnents from 'parent' theme
  • todo: make css optionaly replacing 'parent' css or extending it (by appending at the end)
  • usedby: PMA_Theme::load()

Located in /trunk/libraries/Theme.class.php (line 18)


	
			
Variable Summary
string $id
string $img_path
integer $mtime_info
string $name
string $path
array $types
string $version
Method Summary
static object PMA_Theme load (string $folder)
void checkImgPath ()
boolean checkVersion (string $version)
string getId ()
string getImgPath ()
string getLayoutFile ()
string getName ()
string getPath ()
string getVersion ()
void loadCss ( &$type, string $type)
boolean loadInfo ()
void printPreview ()
void setId (string $id)
void setImgPath (string $path)
void setName (string $name)
void setPath (string $path)
void setVersion (string $version)
Variables
string $id = '' (line 35)
string $img_path = '' (line 47)
integer $mtime_info = 0 (line 59)
string $name = '' (line 29)
string $path = '' (line 41)
array $types = array('left', 'right', 'print') (line 53)
string $version = '0.0.0.0' (line 23)
Methods
static load (line 113)

returns theme object loaded from given folder or false if theme is invalid

static object PMA_Theme load (string $folder)
  • string $folder: path to theme
checkImgPath (line 140)

checks image path for existance - if not found use img from original theme

void checkImgPath ()
checkVersion (line 226)

checks theme version agaisnt $version returns true if theme version is equal or higher to $version

boolean checkVersion (string $version)
  • string $version: version to compare to
getId (line 275)

returns id

string getId ()
getImgPath (line 295)
string getImgPath ()
getLayoutFile (line 175)

returns layout file

string getLayoutFile ()
getName (line 251)

returns name

string getName ()
getPath (line 163)

returns path to theme

string getPath ()
getVersion (line 211)

returns version

string getVersion ()
loadCss (line 311)

load css (send to stdout, normaly the browser)

void loadCss ( &$type, string $type)
  • string $type: left, right or print
  • &$type
loadInfo (line 71)
boolean loadInfo ()
printPreview (line 355)

prints out the preview for this theme

void printPreview ()
setId (line 263)

sets id

void setId (string $id)
  • string $id: new id
setImgPath (line 285)
void setImgPath (string $path)
  • string $path: path to images for this theme
setName (line 239)

sets name

void setName (string $name)
  • string $name: new name
setPath (line 187)

set path to theme

void setPath (string $path)
  • string $path: path to theme
setVersion (line 199)

sets version

void setVersion (string $version)
  • string $version: new version

Documentation generated on Thu, 25 Oct 2007 14:23:11 +0200 by phpDocumentor 1.4.0