Gui Class Reference

Inheritance diagram for Gui:
[legend]
Collaboration diagram for Gui:
[legend]

List of all members.


Detailed Description

Look&Feel editor file

Definition at line 8 of file gui.php.


Public Member Functions

 init ()
 render ()
 fillColors ($aStyles, $aColors)
 save ($blAjax=true)
 saveUserSettings ($sTheme, $aColors, $aStyles)
 previewCss ()
 previewGif ()
 gif ($sTpl=null, $aColors=null, $sFile=null, $sDir=null)
 getUserColors ()
 getUserStyles ()
 getThemes ()
 getColors ($sThemeId)
 getStyles ()
 getRes ($sRes)
 getResColors ($sRes, $sTpl)
 getImageColors ($sImageID, $aStyles)
 getStyleTree ()
 hex2rgb ($sHexColor)

Protected Member Functions

 _loadGuiFiles ()

Protected Attributes

 $_sSrcDir
 $_sGuiDir = "gui/"
 $_sBgDir = "bg/"
 $_sGuiXml = "gui.xml"
 $_sUserGui = "usergui.php"
 $_oGuiDom
 $_sThemeXml = "theme.xml"
 $_oThemesDom
 $_blLoaded = false

Member Function Documentation

Gui.init (  ) 

Ininializes internal fields and loads dom objects

Returns:
null

Reimplemented from oxAdminView.

Definition at line 78 of file gui.php.

Gui.render (  ) 

Render template and loads all needed data

Returns:
string

Reimplemented from oxAdminView.

Definition at line 99 of file gui.php.

Gui.fillColors ( aStyles,
aColors 
)

Fills array with color values according to the index

Parameters:
array $aStyles array to fill
array $aColors values to fill
Returns:
array

Definition at line 163 of file gui.php.

Gui.save ( blAjax = true  ) 

Generates css and background image files

Parameters:
bool $blAjax do not render page if called from ajax
Returns:
null

Definition at line 179 of file gui.php.

Gui.saveUserSettings ( sTheme,
aColors,
aStyles 
)

Saves user setting to php file

Parameters:
string $sTheme Theme id
string $aColors Color palette
string $aStyles Element styles
Returns:
null

Definition at line 260 of file gui.php.

Gui.previewCss (  ) 

Renders css preview with image preview link

Returns:
null

Definition at line 282 of file gui.php.

Gui.previewGif (  ) 

Renders image preview

Returns:
null

Definition at line 321 of file gui.php.

Gui.gif ( sTpl = null,
aColors = null,
sFile = null,
sDir = null 
)

Renders and outputs or saves gif image (saves if not null, otherwise outputs directly)

Parameters:
string $sTpl Theme id
array $aColors Colors array
string $sFile File name
string $sDir Directory name
Returns:
null

Definition at line 342 of file gui.php.

Gui.getUserColors (  ) 

Returns default and posted colors array

Returns:
array

Definition at line 366 of file gui.php.

Gui.getUserStyles (  ) 

Returns default and posted styles array

Returns:
array

Definition at line 384 of file gui.php.

Gui._loadGuiFiles (  )  [protected]

Loads gui and theme xml files DOM documents

protected

Returns:
array

Definition at line 401 of file gui.php.

Gui.getThemes (  ) 

Returns themes array

Returns:
array

Definition at line 427 of file gui.php.

Gui.getColors ( sThemeId  ) 

Definition at line 444 of file gui.php.

Gui.getStyles (  ) 

Returns default styles

Returns:
array

Definition at line 461 of file gui.php.

Gui.getRes ( sRes  ) 

Definition at line 480 of file gui.php.

Gui.getResColors ( sRes,
sTpl 
)

Definition at line 495 of file gui.php.

Gui.getImageColors ( sImageID,
aStyles 
)

Definition at line 515 of file gui.php.

Gui.getStyleTree (  ) 

Definition at line 535 of file gui.php.

Gui.hex2rgb ( sHexColor  ) 

Definition at line 550 of file gui.php.


Member Data Documentation

Gui.$_sSrcDir [protected]

Definition at line 15 of file gui.php.

Gui.$_sGuiDir = "gui/" [protected]

Definition at line 22 of file gui.php.

Gui.$_sBgDir = "bg/" [protected]

Definition at line 29 of file gui.php.

Gui.$_sGuiXml = "gui.xml" [protected]

Definition at line 36 of file gui.php.

Gui.$_sUserGui = "usergui.php" [protected]

Definition at line 43 of file gui.php.

Gui.$_oGuiDom [protected]

Definition at line 50 of file gui.php.

Gui.$_sThemeXml = "theme.xml" [protected]

Definition at line 57 of file gui.php.

Gui.$_oThemesDom [protected]

Definition at line 64 of file gui.php.

Gui.$_blLoaded = false [protected]

Definition at line 71 of file gui.php.


The documentation for this class was generated from the following file:

Generated on Thu Dec 4 12:05:14 2008 for OXID eShop CE by  doxygen 1.5.5